Browse Source

Ensure that VM needed by the OvnController faults tests really works

In case when VM wasn't created earlier by some other tests and only
OvnController tests is run, it could fail due to vm which is in ERROR
state. And it's in such state due to already dead ovn-controller agent.

To avoid that this patch adds check if vm is really ready and reachable
before starting killing processes.

Change-Id: I6455354ef8686a12b3d105660398bef6db653e8d
changes/09/780009/1
Slawek Kaplonski 2 months ago
parent
commit
e4fafd99a1
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tobiko/tests/faults/neutron/test_agents.py

+ 3
- 0
tobiko/tests/faults/neutron/test_agents.py View File

@ -562,6 +562,9 @@ class OvnControllerTest(BaseAgentTest):
def setUp(self):
super(OvnControllerTest, self).setUp()
self.get_ovn_agents_from_containers()
# Ensure that stack is really created to avoid VM error due to dead
# agents
ping.ping_until_received(self.stack.ip_address).assert_replied()
def kill_ovn_controller(self,
hosts: typing.Optional[typing.List[str]] = None,


Loading…
Cancel
Save