Browse Source

Stop OVS agent before starting it again

In TestOVSAgent, there are two tests where the OVS agent is
configured and started twice per test. Before the second call,
the agent should be stopped first.

Depends-On: https://review.opendev.org/667216/
Change-Id: I30c2bd4ce3715cde60bc0cd3736bd9c75edc1df3
Closes-Bug: #1830895
(cherry picked from commit b77c79e5e8)
(cherry picked from commit ff66205081)
changes/80/675880/1
Rodolfo Alonso Hernandez 3 months ago
parent
commit
cd216c2c76
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      neutron/tests/functional/agent/test_l2_ovs_agent.py

+ 2
- 0
neutron/tests/functional/agent/test_l2_ovs_agent.py View File

@@ -243,6 +243,7 @@ class TestOVSAgent(base.OVSAgentTestFramework):
243 243
         patch_int_ofport_before = self.agent.patch_int_ofport
244 244
         patch_tun_ofport_before = self.agent.patch_tun_ofport
245 245
 
246
+        self.stop_agent(self.agent, self.agent_thread)
246 247
         self.setup_agent_and_ports(port_dicts=[], create_tunnels=True)
247 248
         self.assertEqual(patch_int_ofport_before, self.agent.patch_int_ofport)
248 249
         self.assertEqual(patch_tun_ofport_before, self.agent.patch_tun_ofport)
@@ -254,6 +255,7 @@ class TestOVSAgent(base.OVSAgentTestFramework):
254 255
         patch_int_ofport_before = self.agent.int_ofports['physnet']
255 256
         patch_phys_ofport_before = self.agent.phys_ofports['physnet']
256 257
 
258
+        self.stop_agent(self.agent, self.agent_thread)
257 259
         self.setup_agent_and_ports(port_dicts=[])
258 260
         self.assertEqual(patch_int_ofport_before,
259 261
                          self.agent.int_ofports['physnet'])

Loading…
Cancel
Save