Pass wait_until arg in create_test_server call
wait_until argument is not passed when calling
create_test_server due to which it returns server details and then
test cleanup goes for deleting server which is still in build state
causing it to leave behind volume if server is booted using bootable
volume. passing wait_until arg fixes the issue. Also name variable
is getting ignored so adding condition to use name variable if passed.
Change-Id: I1fc92d4405226ac34058853df598be75bf921691
Closes-Bug: 1458295
diff --git a/tempest/api/compute/servers/test_multiple_create.py b/tempest/api/compute/servers/test_multiple_create.py
index eed3be8..11b457b 100644
--- a/tempest/api/compute/servers/test_multiple_create.py
+++ b/tempest/api/compute/servers/test_multiple_create.py
@@ -30,7 +30,9 @@
This is the right way to create_multiple servers and manage to get the
created servers into the servers list to be cleaned up after all.
"""
- kwargs['name'] = kwargs.get('name', self._generate_name())
+ kwargs['name'] = name if name else self._generate_name()
+ if wait_until:
+ kwargs['wait_until'] = wait_until
body = self.create_test_server(**kwargs)
return body