From 89f5193f4a5f0a707474eb604bcfbba120db0d45 Mon Sep 17 00:00:00 2001 From: Rodolfo Alonso Hernandez Date: Fri, 18 Oct 2019 17:04:02 +0000 Subject: [PATCH] Increase waiting time for network rescheduling Increate waiting time in "test_reschedule_network_on_new_agent", when the network is being rescheduled from a dead DHCP agent to an running one. According to [1], 120 seconds could be a convervative and enough value to wait for this transition. [1] https://bugs.launchpad.net/neutron/+bug/1799555/comments/23 Change-Id: I2fec6015b56fd1b5d21b75f7432c40b2110fe6bc Related-Bug: #1799555 (cherry picked from commit d15ad2e481b9b888079d55ba46d73ca5b7253285) --- neutron/tests/fullstack/test_dhcp_agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/fullstack/test_dhcp_agent.py b/neutron/tests/fullstack/test_dhcp_agent.py index 4f3d5d9f3f3..9a3ad604d45 100644 --- a/neutron/tests/fullstack/test_dhcp_agent.py +++ b/neutron/tests/fullstack/test_dhcp_agent.py @@ -135,7 +135,7 @@ class TestDhcpAgentHA(BaseDhcpAgentTest): return network_agents[0]['id'] != old_agent['id'] return False - common_utils.wait_until_true(_agent_rescheduled) + common_utils.wait_until_true(_agent_rescheduled, timeout=120) def _kill_dhcp_agent(self, agent): for host in self.environment.hosts: