Browse Source

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.

Conflicts:
    neutron/tests/fullstack/resources/config.py

Change-Id: Icf9a8802585c908fd4a70d0508139a81d5ac90ee
Related-Bug: #1799555
(cherry picked from commit d7c5ae8a03)
changes/59/680659/1
Rodolfo Alonso Hernandez 3 months ago
parent
commit
57725fc7d4

+ 2
- 1
neutron/tests/fullstack/resources/config.py View File

@@ -89,7 +89,8 @@ class NeutronConfigFixture(ConfigFixture):
89 89
                 'policy_file': self._generate_policy_json(),
90 90
             },
91 91
             'agent': {
92
-                'report_interval': str(env_desc.agent_down_time / 2.0)
92
+                'report_interval': str(env_desc.agent_down_time / 2.0),
93
+                'log_agent_heartbeats': 'True',
93 94
             },
94 95
         })
95 96
         # Set root_helper/root_helper_daemon only when env var is set

+ 1
- 1
neutron/tests/fullstack/test_dhcp_agent.py View File

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

Loading…
Cancel
Save