Creating bucket via region-specific S3 endpoint fails

Bug #961050 reported by Eoghan Glynn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Eoghan Glynn

Bug Description

Configuring a region-specific S3 endpoint, e.g.:

  s3_store_host = s3-eu-west-1.amazonaws.com

with create-on-demand enabled:

  s3_store_create_bucket_on_put = True

fails to create the bucket with:

"Failed to add bucket to S3. Got error from S3: S3ResponseError: 400 Bad Request IllegalLocationConstraintExceptionThe unspecified location constraint is incompatible for the region specific endpoint this request was sent to."

The S3 API appears to require that the location is explicitly specified when an endpoint other that the default s3.amazonaws.com is used.

Eoghan Glynn (eglynn)
Changed in glance:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Eoghan Glynn (eglynn)
Eoghan Glynn (eglynn)
Changed in glance:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/5607

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/5607
Committed: http://github.com/openstack/glance/commit/4150aecfcb1ae2314638301e2db6e808071dc148
Submitter: Jenkins
Branch: master

commit 4150aecfcb1ae2314638301e2db6e808071dc148
Author: Eoghan Glynn <email address hidden>
Date: Wed Mar 21 11:54:21 2012 +0000

    Specify location when creating s3 bucket.

    Fixes bug 961050

    Avoids bucket creation failure when a region-specific S3 endpoint
    (e.g. s3-eu-west-1.amazonaws.com) and also bucket create-on-demand
    are configured.

    Change-Id: Ieba9c535ccb961a1f81bd2632b5ac49c23ac7901

Changed in glance:
status: In Progress → Fix Committed
Brian Waldon (bcwaldon)
Changed in glance:
milestone: none → essex-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/5892

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (milestone-proposed)

Reviewed: https://review.openstack.org/5892
Committed: http://github.com/openstack/glance/commit/e677abf4ff9d2ea3bdc92e58ec81a4784df3b29e
Submitter: Jenkins
Branch: milestone-proposed

commit e677abf4ff9d2ea3bdc92e58ec81a4784df3b29e
Author: Eoghan Glynn <email address hidden>
Date: Wed Mar 21 11:54:21 2012 +0000

    Specify location when creating s3 bucket.

    Fixes bug 961050

    Avoids bucket creation failure when a region-specific S3 endpoint
    (e.g. s3-eu-west-1.amazonaws.com) and also bucket create-on-demand
    are configured.

    Change-Id: Ieba9c535ccb961a1f81bd2632b5ac49c23ac7901

Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.