From d7634c69bb58c4ddb0c8cbd17cd3efcfdd354ab2 Mon Sep 17 00:00:00 2001 From: K Jonathan Harker Date: Fri, 30 Nov 2012 02:17:45 +0000 Subject: [PATCH] Our attempts should be slowing down, not speeding up --- saltcloud/clouds/openstack.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/saltcloud/clouds/openstack.py b/saltcloud/clouds/openstack.py index d9ac7ef44081..6af5fea4c881 100644 --- a/saltcloud/clouds/openstack.py +++ b/saltcloud/clouds/openstack.py @@ -194,7 +194,8 @@ def create(vm_): return False not_ready = True - nr_count = 50 + nr_total = 50 + nr_count = nr_total log.debug('Looking for IP addresses') while not_ready: nodelist = list_nodes() @@ -224,7 +225,7 @@ def create(vm_): if nr_count == 0: log.warn('Timed out waiting for a public ip, continuing anyway') break - time.sleep(nr_count) + time.sleep(nr_total - nr_count + 5) if ssh_interface(vm_) == 'private_ips': ip_address = preferred_ip(vm_, data.private_ips)