1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/70b60fd07d6a/ changeset: 70b60fd07d6a user: dannon date: 2012-09-19 06:10:47 summary: Cloud Launch - Fix for rare instance udpate() that happens when (rarely) Amazon doesn't have the instance fully registered before update() is called. affected #: 1 file diff -r 572f0d4ed0ae934e1b2975a6a2940589fc593204 -r 70b60fd07d6a0ab6889c79a9518fd894e13f9c8d lib/galaxy/web/controllers/cloudlaunch.py --- a/lib/galaxy/web/controllers/cloudlaunch.py +++ b/lib/galaxy/web/controllers/cloudlaunch.py @@ -22,7 +22,6 @@ from boto.exception import EC2ResponseError from boto.s3.connection import OrdinaryCallingFormat, S3Connection - log = logging.getLogger(__name__) PKEY_PREFIX = 'gxy_pkey' @@ -98,7 +97,12 @@ while not instance.public_dns_name: # Can take a second to have public dns name registered. # DBTODO, push this into a page update, this is not ideal. - instance.update() + try: + instance.update() + except EC2ResponseError: + #This can happen when update is invoked before the instance is fully registered. Prevent + #failure, wait it out. + pass ct +=1 time.sleep(1) if kp_material: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.