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

Issue 6854098: environs/ec2: specify public-bucket-region (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
5 years, 1 month ago by dfc
Modified:
5 years, 1 month ago
Reviewers:
mp+136299
Visibility:
Public.

Description

environs/ec2: specify public-bucket-region Fixes LP #1083017 Our public bucket, juju-dist, lives in the us-east-1 region and can only be accessed via that endpoint. If you attempt to do so via another endpoint you get an unhelpful 301 error with an xml blob telling you how to request the bucket. The solution is to add a configuration option, with sensible default, to ec2/config.go to specify the region of the public bucket independantly of the private bucket. https://code.launchpad.net/~dave-cheney/juju-core/052-environs-ec2-always-request-public-tools-from-us-east-1-II/+merge/136299 Requires: https://code.launchpad.net/~dave-cheney/juju-core/056-environs-ec2-tests-pass-on-quantal/+merge/136297 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs/ec2: specify public-bucket-region #

Total comments: 6

Patch Set 3 : environs/ec2: specify public-bucket-region #

Patch Set 4 : environs/ec2: specify public-bucket-region #

Patch Set 5 : environs/ec2: specify public-bucket-region #

Patch Set 6 : environs/ec2: specify public-bucket-region #

Patch Set 7 : environs/ec2: specify public-bucket-region #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -30 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M environs/ec2/config.go View 3 chunks +18 lines, -9 lines 0 comments Download
M environs/ec2/config_test.go View 1 2 3 4 5 4 chunks +45 lines, -9 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M environs/ec2/local_test.go View 1 2 3 1 chunk +12 lines, -11 lines 0 comments Download

Messages

Total messages: 11
dfc
Please take a look.
5 years, 1 month ago (2012-11-27 00:07:39 UTC) #1
dfc
Please take a look.
5 years, 1 month ago (2012-11-27 03:27:20 UTC) #2
jameinel
LGTM I'm still wondering if it would be better to put the tools in each ...
5 years, 1 month ago (2012-11-27 04:22:51 UTC) #3
dfc
https://codereview.appspot.com/6854098/diff/2001/environs/ec2/config.go File environs/ec2/config.go (right): https://codereview.appspot.com/6854098/diff/2001/environs/ec2/config.go#newcode84 environs/ec2/config.go:84: } On 2012/11/27 04:22:51, john.meinel wrote: > Should this ...
5 years, 1 month ago (2012-11-27 04:28:55 UTC) #4
niemeyer
Looks very nice, but it's lacking tests. Something somewhere somehow must verify that the public ...
5 years, 1 month ago (2012-11-27 11:40:46 UTC) #5
dfc
Please take a look. https://codereview.appspot.com/6854098/diff/2001/environs/ec2/config_test.go File environs/ec2/config_test.go (right): https://codereview.appspot.com/6854098/diff/2001/environs/ec2/config_test.go#newcode41 environs/ec2/config_test.go:41: pbucketregion string On 2012/11/27 11:40:47, ...
5 years, 1 month ago (2012-11-27 11:50:02 UTC) #6
niemeyer
Sure, but we still need to test the *intention* of the change. Just saying "if ...
5 years, 1 month ago (2012-11-27 13:05:00 UTC) #7
dfc
Please take a look.
5 years, 1 month ago (2012-11-30 01:22:12 UTC) #8
dfc
On 2012/11/27 13:05:00, niemeyer wrote: > Sure, but we still need to test the *intention* ...
5 years, 1 month ago (2012-11-30 01:22:38 UTC) #9
niemeyer
LGTM, thanks!
5 years, 1 month ago (2012-11-30 17:13:47 UTC) #10
dfc
5 years, 1 month ago (2012-11-30 19:10:36 UTC) #11
*** Submitted:

environs/ec2: specify public-bucket-region

Fixes LP #1083017

Our public bucket, juju-dist, lives in the us-east-1 region and can only be
accessed via that endpoint. If you attempt to do so via another endpoint you get
an unhelpful 301 error with an xml blob telling you how to request the bucket.
The solution is to add a configuration option, with sensible default, to
ec2/config.go to specify the region of the public bucket independantly of the
private bucket.

R=jameinel, niemeyer
CC=
https://codereview.appspot.com/6854098
Sign in to reply to this message.

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