From: Loic Dachary Date: Wed, 4 Nov 2015 08:58:56 +0000 (+0100) Subject: openstack: poll every 30 seconds instead of 2 X-Git-Tag: 1.1.0~756^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=63443c6bed8b05ad3fdd3592b86bbd46fa7f27ae;p=teuthology.git openstack: poll every 30 seconds instead of 2 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 --- diff --git a/teuthology/openstack/__init__.py b/teuthology/openstack/__init__.py index fe976a928..b65be1b7e 100644 --- a/teuthology/openstack/__init__.py +++ b/teuthology/openstack/__init__.py @@ -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