OpenStack Image Registry and Delivery Service (Glance)

Creating bucket via region-specific S3 endpoint fails

Reported by Eoghan Glynn on 2012-03-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
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) on 2012-03-21
Changed in glance:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Eoghan Glynn (eglynn)
Eoghan Glynn (eglynn) on 2012-03-21
Changed in glance:
status: Confirmed → In Progress

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) on 2012-03-27
Changed in glance:
milestone: none → essex-rc2

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) on 2012-04-05
Changed in glance:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers