Verify instances status before going starting the instances

This commit is contained in:
Camille Rodriguez
2019-08-30 15:26:54 -04:00
parent 94e1d8f7ed
commit 9061ad9847
+4 -2
View File
@@ -278,8 +278,10 @@ class PerconaClusterColdStartTest(PerconaClusterTest):
self.nova_client.servers.stop(uuid)
logging.debug("Wait till all machines are shutoff ...")
for uuid in self.machines:
openstack_utils.resource_reaches_status(self.nova_client.servers, uuid,
expected_status='SHUTOFF', stop_after_attempt=16)
openstack_utils.resource_reaches_status(self.nova_client.servers,
uuid,
expected_status='SHUTOFF',
stop_after_attempt=16)
# Start nodes
self.machines.sort(reverse=True)