From 3b465890b6e6d4f95622ff3661f7b821b2168c4a Mon Sep 17 00:00:00 2001 From: Jerry Seutter Date: Mon, 22 Sep 2014 09:10:30 -0600 Subject: [PATCH] Increase sleep to work around Rackspace slowness --- cloud-image/create_image.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud-image/create_image.py b/cloud-image/create_image.py index d980a2ba..b7b1fec1 100644 --- a/cloud-image/create_image.py +++ b/cloud-image/create_image.py @@ -101,8 +101,9 @@ def main(): startup_script) passwd = uuid.uuid4().hex instance.change_password(passwd) - # wait for the password change to be processed - sleep(POLL_SEC) + # wait for the password change to be processed. Continuing while + # a password change is processing will cause image creation to fail. + sleep(POLL_SEC*6) env.host_string = str(instance.accessIPv4) env.user = "root"