Increase TestDhcpAgentHA.agent_down_time to 30 seconds

Currently there is a delay (around 20 seconds) between the the agent
update call and the server reply, due to the testing servers load. This
time should be higher than the agent-server communication delay but
still short enough to detect when the DHCP agent is dead during the
active wait during the DHCP agent network rescheduling.

"log_agent_heartbeats" is activated to add information about when the
server has processed the agent report status call. This log will allow
to check the different between the server updating time and the previous
agent heartbeat timestamp.

Change-Id: Icf9a8802585c908fd4a70d0508139a81d5ac90ee
Related-Bug: #1799555
This commit is contained in:
Rodolfo Alonso Hernandez 2019-06-14 15:50:39 +00:00
parent 76754e06f5
commit d7c5ae8a03
2 changed files with 3 additions and 2 deletions

View File

@ -92,7 +92,8 @@ class NeutronConfigFixture(ConfigFixture):
'lock_path': '$state_path/lock',
},
'agent': {
'report_interval': str(env_desc.agent_down_time // 2)
'report_interval': str(env_desc.agent_down_time // 2),
'log_agent_heartbeats': 'True',
},
})
policy_file = self._generate_policy_json()

View File

@ -125,7 +125,7 @@ class TestDhcpAgentNoHA(BaseDhcpAgentTest):
class TestDhcpAgentHA(BaseDhcpAgentTest):
number_of_hosts = 2
agent_down_time = 10
agent_down_time = 30
def _wait_until_network_rescheduled(self, old_agent):
def _agent_rescheduled():