Wait for server to be deleted before reboot/rebuild. Fixes bug 1006586.
Change-Id: I000d06fb3f7200b819e62cabbf7a43ef13eb8d7c
diff --git a/tempest/tests/test_servers_negative.py b/tempest/tests/test_servers_negative.py
index 87f184f..48c22d3 100644
--- a/tempest/tests/test_servers_negative.py
+++ b/tempest/tests/test_servers_negative.py
@@ -112,6 +112,7 @@
self.flavor_ref)
self.server_id = create_server['id']
self.client.delete_server(self.server_id)
+ self.client.wait_for_server_termination(self.server_id)
try:
resp1, reboot_server = self.client.reboot(self.server_id, 'SOFT')
except exceptions.NotFound:
@@ -128,6 +129,7 @@
self.flavor_ref)
self.server_id = create_server['id']
self.client.delete_server(self.server_id)
+ self.client.wait_for_server_termination(self.server_id)
try:
resp1, rebuild_server = self.client.rebuild(self.server_id,
self.image_ref_alt)