1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/cdd8b8a66a98/ changeset: cdd8b8a66a98 user: dannon date: 2013-02-06 03:55:12 summary: Cloudlaunch: During bucket scanning, catch S3ResponseError. Boto should handle this better in future versions, but for now this can happen if a non-us bucket is accessed. affected #: 1 file diff -r 022fd520c8ec2eee6221c44213c034be504735b8 -r cdd8b8a66a980d1761e47f9202114fbcfd218cf7 lib/galaxy/webapps/galaxy/controllers/cloudlaunch.py --- a/lib/galaxy/webapps/galaxy/controllers/cloudlaunch.py +++ b/lib/galaxy/webapps/galaxy/controllers/cloudlaunch.py @@ -19,7 +19,7 @@ from galaxy.web.base.controller import BaseUIController from galaxy.util.json import to_json_string from boto.ec2.regioninfo import RegionInfo -from boto.exception import EC2ResponseError +from boto.exception import EC2ResponseError, S3ResponseError from boto.s3.connection import OrdinaryCallingFormat, S3Connection log = logging.getLogger(__name__) @@ -28,6 +28,7 @@ DEFAULT_KEYPAIR = 'cloudman_keypair' DEFAULT_AMI = 'ami-da58aab3' + class CloudController(BaseUIController): def __init__(self, app): @@ -55,7 +56,12 @@ buckets = s3_conn.get_all_buckets() clusters = [] for bucket in buckets: - pd = bucket.get_key('persistent_data.yaml') + try: + pd = bucket.get_key('persistent_data.yaml') + except S3ResponseError, e: + # This can fail for a number of reasons for non-us and/or CNAME'd buckets. + log.error("Problem fetching persistent_data.yaml from bucket: %s \n%s" % (e, e.body)) + continue if pd: # This is a cloudman bucket. # We need to get persistent data, and the cluster name. 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.