aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core/singlevm.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-07-18 15:05:47 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-07-18 15:09:34 +0200
commitc391f57e6797e544d14285ca433b2499ed84cd5f (patch)
tree1bc1efa64735e9c324c9e367d1c0da15a38157ce /functest/core/singlevm.py
parentc4c3a33b9e6ae87c15331bf95e5544f0f680e4f0 (diff)
Increase timeout when creating servers
It takes times to prepare disk on compute nodes (spawning). The default value is enough for all cirros VMs but it has to be increased for all cloudify VMs (4.1G). Change-Id: I3f1fc0142a73c586e9219a2718bfc467cc48e275 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/core/singlevm.py')
-rw-r--r--functest/core/singlevm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/functest/core/singlevm.py b/functest/core/singlevm.py
index afc11106d..0f7ba71b4 100644
--- a/functest/core/singlevm.py
+++ b/functest/core/singlevm.py
@@ -48,6 +48,7 @@ class VmReady1(tenantnetwork.TenantNetwork1):
flavor_alt_ram = 1024
flavor_alt_vcpus = 1
flavor_alt_disk = 1
+ create_server_timeout = 60
def __init__(self, **kwargs):
if "case_name" not in kwargs:
@@ -177,9 +178,8 @@ class VmReady1(tenantnetwork.TenantNetwork1):
vm1 = self.cloud.create_server(
name if name else '{}-vm_{}'.format(self.case_name, self.guid),
image=self.image.id, flavor=self.flavor.id,
- auto_ip=False, wait=True,
- network=self.network.id,
- **kwargs)
+ auto_ip=False, wait=True, network=self.network.id,
+ timeout=self.create_server_timeout, **kwargs)
vm1 = self.cloud.wait_for_server(vm1, auto_ip=False)
self.__logger.debug("vm: %s", vm1)
return vm1