Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(112)

Issue 6810086: environs/ec2: handle 409 errors from PutBucket (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by dave
Modified:
13 years ago
Reviewers:
mp+133006
Visibility:
Public.

Description

environs/ec2: handle 409 errors from PutBucket PutBucket can return a 409/BucketAlreadyOwnedByYou if the bucket already exists. This does not appear to happen in the original s3 region, but will occur in the newer regions. Filter out this error codition as it's not really an error. Requires support from goamz/s3/s3test, https://code.launchpad.net/~dave-cheney/goamz/004-send-409-conflict http://docs.amazonwebservices.com/AmazonS3/2006-03-01/API/ErrorResponses.html https://code.launchpad.net/~dave-cheney/juju-core/036-environs-ec2-make-non-us-east-1-work-again/+merge/133006 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : environs/ec2: handle 409 errors from PutBucket #

Patch Set 3 : environs/ec2: handle 409 errors from PutBucket #

Total comments: 5

Patch Set 4 : environs/ec2: handle 409 errors from PutBucket #

Patch Set 5 : environs/ec2: handle 409 errors from PutBucket #

Patch Set 6 : environs/ec2: handle 409 errors from PutBucket #

Patch Set 7 : environs/ec2: handle 409 errors from PutBucket #

Patch Set 8 : environs/ec2: handle 409 errors from PutBucket #

Total comments: 2

Patch Set 9 : environs/ec2: handle 409 errors from PutBucket #

Patch Set 10 : environs/ec2: handle 409 errors from PutBucket #

Patch Set 11 : environs/ec2: handle 409 errors from PutBucket #

Patch Set 12 : environs/ec2: handle 409 errors from PutBucket #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -7 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M environs/ec2/export_test.go View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -0 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 3 4 5 6 7 8 5 chunks +60 lines, -1 line 0 comments Download
M environs/ec2/storage.go View 1 2 2 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 25
dave_cheney.net
Please take a look.
13 years, 1 month ago (2012-11-06 02:13:05 UTC) #1
rog
LGTM with one possible consideration below. https://codereview.appspot.com/6810086/diff/1/environs/ec2/storage.go File environs/ec2/storage.go (right): https://codereview.appspot.com/6810086/diff/1/environs/ec2/storage.go#newcode32 environs/ec2/storage.go:32: if err := ...
13 years, 1 month ago (2012-11-06 13:59:57 UTC) #2
fwereade
Change is fine, but it needs a test.
13 years, 1 month ago (2012-11-06 18:30:17 UTC) #3
dave_cheney.net
What if I changed livetests to run against us-west-1, that should expose all the stuff ...
13 years, 1 month ago (2012-11-06 19:21:50 UTC) #4
dave_cheney.net
Please take a look.
13 years, 1 month ago (2012-11-07 05:40:10 UTC) #5
dave_cheney.net
Please take a look.
13 years, 1 month ago (2012-11-07 09:01:57 UTC) #6
fwereade
ISTM that this is just switching an integration test around, causing the most popular region ...
13 years, 1 month ago (2012-11-09 07:00:48 UTC) #7
rog
On 2012/11/09 07:00:48, fwereade wrote: > ISTM that this is just switching an integration test ...
13 years, 1 month ago (2012-11-09 10:30:06 UTC) #8
TheMue
To ensure the compatibility with all regions an extra test started with an extra option ...
13 years, 1 month ago (2012-11-09 11:39:25 UTC) #9
niemeyer
NOT LGTM due to the switch of default region in live tests. The test for ...
13 years, 1 month ago (2012-11-14 16:30:45 UTC) #10
TheMue
> > Where do we have a test of all regions? > > We definitely ...
13 years, 1 month ago (2012-11-14 16:34:43 UTC) #11
dave_cheney.net
Please take a look.
13 years ago (2012-12-10 05:40:27 UTC) #12
dave_cheney.net
Please take a look.
13 years ago (2012-12-10 05:44:24 UTC) #13
dave_cheney.net
Please take a look.
13 years ago (2012-12-10 05:55:24 UTC) #14
dave_cheney.net
Please take a look.
13 years ago (2012-12-11 00:11:48 UTC) #15
fwereade
Wondering if I've missed something... https://codereview.appspot.com/6810086/diff/24001/environs/ec2/local_test.go File environs/ec2/local_test.go (right): https://codereview.appspot.com/6810086/diff/24001/environs/ec2/local_test.go#newcode110 environs/ec2/local_test.go:110: Send409Conflict: true, I'm still ...
13 years ago (2012-12-11 09:10:22 UTC) #16
dave_cheney.net
Can I parry that the logic is tested inside goamz/s3 itself. On 11/12/2012, at 20:10, ...
13 years ago (2012-12-11 09:21:35 UTC) #17
dave_cheney.net
https://codereview.appspot.com/6810086/diff/24001/environs/ec2/local_test.go File environs/ec2/local_test.go (right): https://codereview.appspot.com/6810086/diff/24001/environs/ec2/local_test.go#newcode110 environs/ec2/local_test.go:110: Send409Conflict: true, On 2012/12/11 09:10:22, fwereade wrote: > I'm ...
13 years ago (2012-12-11 12:25:54 UTC) #18
niemeyer
On 2012/12/11 12:25:54, dfc wrote: > https://codereview.appspot.com/6810086/diff/24001/environs/ec2/local_test.go > File environs/ec2/local_test.go (right): > > https://codereview.appspot.com/6810086/diff/24001/environs/ec2/local_test.go#newcode110 > ...
13 years ago (2012-12-11 12:34:12 UTC) #19
niemeyer
On 2012/12/11 12:34:12, niemeyer wrote: > I think what Williams is suggesting is to have ...
13 years ago (2012-12-11 12:34:54 UTC) #20
fwereade
On 2012/12/11 12:34:12, niemeyer wrote: > I think what Williams is suggesting is to have ...
13 years ago (2012-12-11 12:56:32 UTC) #21
dave_cheney.net
Please take a look.
13 years ago (2012-12-13 05:06:14 UTC) #22
dave_cheney.net
On 2012/12/13 05:06:14, dfc wrote: > Please take a look. PTAL.
13 years ago (2012-12-13 18:52:06 UTC) #23
dave_cheney.net
Please take a look.
13 years ago (2012-12-15 01:43:27 UTC) #24
dave_cheney.net
13 years ago (2012-12-16 00:06:35 UTC) #25
*** Submitted:

environs/ec2: handle 409 errors from PutBucket

PutBucket can return a 409/BucketAlreadyOwnedByYou if the bucket already exists.
This does not appear to happen in the original s3 region, but will occur in the
newer regions.

Filter out this error codition as it's not really an error.

Requires support from goamz/s3/s3test,
https://code.launchpad.net/~dave-cheney/goamz/004-send-409-conflict

http://docs.amazonwebservices.com/AmazonS3/2006-03-01/API/ErrorResponses.html

R=rog, fwereade, TheMue, niemeyer
CC=
https://codereview.appspot.com/6810086
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b