]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
openstack: poll every 30 seconds instead of 2 698/head
authorLoic Dachary <ldachary@redhat.com>
Wed, 4 Nov 2015 08:58:56 +0000 (09:58 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 4 Nov 2015 12:15:19 +0000 (13:15 +0100)
No cloud provider boots an instance within 30 seconds, no need to poll
aggressively. Also wait more than a total of 1200 seconds (3000 seconds)
because some providers may take more than 20 minutes to complete the
boot sequence.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
teuthology/openstack/__init__.py

index fe976a928486e8a7d76e3aba576069e6d21efbe5..b65be1b7e02bdc9ecb5bc4443b7d6cbde96f9541 100644 (file)
@@ -205,7 +205,7 @@ class OpenStack(object):
         if self.key_filename:
             log.debug("using key " + self.key_filename)
             client_args['key_filename'] = self.key_filename
-        with safe_while(sleep=2, tries=600,
+        with safe_while(sleep=30, tries=100,
                         action="cloud_init_wait " + name_or_ip) as proceed:
             success = False
             # CentOS 6.6 logs in /var/log/clout-init-output.log