From 63443c6bed8b05ad3fdd3592b86bbd46fa7f27ae Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 4 Nov 2015 09:58:56 +0100 Subject: [PATCH] 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 --- teuthology/openstack/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/openstack/__init__.py b/teuthology/openstack/__init__.py index fe976a9284..b65be1b7e0 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 -- 2.39.5