Increase timeout when creating servers 35/59935/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 18 Jul 2018 13:05:47 +0000 (15:05 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 18 Jul 2018 13:09:34 +0000 (15:09 +0200)
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>
functest/core/cloudify.py
functest/core/singlevm.py
functest/opnfv_tests/openstack/shaker/shaker.py

index b048ed1..655c5f5 100644 (file)
@@ -31,6 +31,7 @@ class Cloudify(singlevm.SingleVm2):
     flavor_disk = 50
     username = 'centos'
     ssh_connect_loops = 12
+    create_server_timeout = 240
     ports = [80, 443, 5671, 53333]
 
     def __init__(self, **kwargs):
index afc1110..0f7ba71 100644 (file)
@@ -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
index 4bf3403..86eed61 100644 (file)
@@ -37,6 +37,7 @@ class Shaker(singlevm.SingleVm2):
     username = 'ubuntu'
     port = 9000
     ssh_connect_loops = 12
+    create_server_timeout = 120
 
     def prepare(self):
         super(Shaker, self).prepare()