aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-03 12:00:15 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-03 12:02:56 +0200
commitf31841906a7cddcecc4c8fba9b641265811e9b7f (patch)
treec232c5314c2dc3e7e6441bf1a61a09291162a2f8
parent8aaf7d0a04017b766aec7b029634d306135b44ef (diff)
Fix timeout (switch to synchronous calls)
It completes "Switch create_server timeout to default value" [1] which forbids waiting more that 180s (create_server was asynchronous). [1] https://gerrit.opnfv.org/gerrit/#/c/60423/2 Change-Id: Icbf9ee48024fe9e10571c2bb7ca895d5828fb561 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/core/singlevm.py3
-rw-r--r--functest/opnfv_tests/openstack/vping/vping_userdata.py1
2 files changed, 1 insertions, 3 deletions
diff --git a/functest/core/singlevm.py b/functest/core/singlevm.py
index 46aa41902..7393fdbe3 100644
--- a/functest/core/singlevm.py
+++ b/functest/core/singlevm.py
@@ -180,8 +180,7 @@ class VmReady1(tenantnetwork.TenantNetwork1):
name if name else '{}-vm_{}'.format(self.case_name, self.guid),
image=self.image.id, flavor=self.flavor.id,
auto_ip=False, network=self.network.id,
- timeout=self.create_server_timeout, **kwargs)
- vm1 = self.cloud.wait_for_server(vm1, auto_ip=False)
+ timeout=self.create_server_timeout, wait=True, **kwargs)
self.__logger.debug("vm: %s", vm1)
return vm1
diff --git a/functest/opnfv_tests/openstack/vping/vping_userdata.py b/functest/opnfv_tests/openstack/vping/vping_userdata.py
index f9d0bdbf0..a58184c59 100644
--- a/functest/opnfv_tests/openstack/vping/vping_userdata.py
+++ b/functest/opnfv_tests/openstack/vping/vping_userdata.py
@@ -46,7 +46,6 @@ class VPingUserdata(singlevm.VmReady2):
self.vm2 = self.boot_vm(
'{}-vm2_{}'.format(self.case_name, self.guid),
userdata=self._get_userdata())
- self.vm2 = self.cloud.wait_for_server(self.vm2, auto_ip=False)
result = self._do_vping()
self.stop_time = time.time()