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

Issue 7226068: openstack: bootstrap w/ public IP + fix (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by dimitern
Modified:
11 years, 3 months ago
Reviewers:
mp+145818
Visibility:
Public.

Description

openstack: bootstrap w/ public IP + fix Now after starting the bootstrap instance, a public floating IP address will be assigned (either available or a new one). Also fixes mgo/api ports, because it was not building it properly with constants. https://code.launchpad.net/~dimitern/juju-core/openstack-bootstrap-fixes/+merge/145818 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : openstack: bootstrap w/ public IP + fix #

Total comments: 6

Patch Set 3 : openstack: bootstrap w/ public IP + fix #

Total comments: 20

Patch Set 4 : openstack: bootstrap w/ public IP + fix #

Patch Set 5 : openstack: bootstrap w/ public IP + fix #

Total comments: 8

Patch Set 6 : openstack: bootstrap w/ public IP + fix #

Patch Set 7 : openstack: bootstrap w/ public IP + fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -13 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M environs/openstack/local_test.go View 1 2 3 4 4 chunks +42 lines, -2 lines 0 comments Download
M environs/openstack/provider.go View 1 2 3 4 5 6 8 chunks +78 lines, -11 lines 0 comments Download

Messages

Total messages: 15
dimitern
Please take a look.
11 years, 3 months ago (2013-01-31 11:19:57 UTC) #1
rog
looks good. a couple of comments below, and could do with some tests, as discussed ...
11 years, 3 months ago (2013-01-31 12:53:10 UTC) #2
dimitern
Please take a look. https://codereview.appspot.com/7226068/diff/1/environs/openstack/provider.go File environs/openstack/provider.go (right): https://codereview.appspot.com/7226068/diff/1/environs/openstack/provider.go#newcode490 environs/openstack/provider.go:490: if fipInstId, ok := fip.InstanceId.(string); ...
11 years, 3 months ago (2013-01-31 12:59:01 UTC) #3
fwereade
Aside from the comments below, we should have a test for the new logic. https://codereview.appspot.com/7226068/diff/5/environs/openstack/provider.go ...
11 years, 3 months ago (2013-01-31 14:22:59 UTC) #4
dimitern
Please take a look. https://codereview.appspot.com/7226068/diff/5/environs/openstack/provider.go File environs/openstack/provider.go (right): https://codereview.appspot.com/7226068/diff/5/environs/openstack/provider.go#newcode32 environs/openstack/provider.go:32: var apiPortSuffix = fmt.Sprintf(":%d", apiPort) ...
11 years, 3 months ago (2013-02-01 17:24:27 UTC) #5
rog
LGTM with a few minor points below. https://codereview.appspot.com/7226068/diff/7001/environs/openstack/export_test.go File environs/openstack/export_test.go (right): https://codereview.appspot.com/7226068/diff/7001/environs/openstack/export_test.go#newcode89 environs/openstack/export_test.go:89: return env.allocatePublicIP() ...
11 years, 3 months ago (2013-02-01 18:01:55 UTC) #6
fwereade
One remark about the code; but some concern that we're not writing the tests at ...
11 years, 3 months ago (2013-02-01 18:15:37 UTC) #7
dimitern
Please take a look. https://codereview.appspot.com/7226068/diff/7001/environs/openstack/export_test.go File environs/openstack/export_test.go (right): https://codereview.appspot.com/7226068/diff/7001/environs/openstack/export_test.go#newcode89 environs/openstack/export_test.go:89: return env.allocatePublicIP() On 2013/02/01 18:01:55, ...
11 years, 3 months ago (2013-02-01 18:26:42 UTC) #8
fwereade
https://codereview.appspot.com/7226068/diff/7001/environs/openstack/live_test.go File environs/openstack/live_test.go (right): https://codereview.appspot.com/7226068/diff/7001/environs/openstack/live_test.go#newcode173 environs/openstack/live_test.go:173: c.Skip("targets the test double only") On 2013/02/01 18:26:42, dimitern ...
11 years, 3 months ago (2013-02-04 16:02:35 UTC) #9
dimitern
Please take a look. https://codereview.appspot.com/7226068/diff/7001/environs/openstack/live_test.go File environs/openstack/live_test.go (right): https://codereview.appspot.com/7226068/diff/7001/environs/openstack/live_test.go#newcode173 environs/openstack/live_test.go:173: c.Skip("targets the test double only") ...
11 years, 3 months ago (2013-02-04 17:55:19 UTC) #10
rog
LGTM with a couple of trivials below. https://codereview.appspot.com/7226068/diff/7001/environs/openstack/live_test.go File environs/openstack/live_test.go (right): https://codereview.appspot.com/7226068/diff/7001/environs/openstack/live_test.go#newcode68 environs/openstack/live_test.go:68: openstack *openstackservice.Openstack ...
11 years, 3 months ago (2013-02-04 18:02:52 UTC) #11
dimitern
Please take a look. https://codereview.appspot.com/7226068/diff/7001/environs/openstack/live_test.go File environs/openstack/live_test.go (right): https://codereview.appspot.com/7226068/diff/7001/environs/openstack/live_test.go#newcode68 environs/openstack/live_test.go:68: openstack *openstackservice.Openstack On 2013/02/04 18:02:53, ...
11 years, 3 months ago (2013-02-04 18:06:50 UTC) #12
fwereade
LGTM, just trivials https://codereview.appspot.com/7226068/diff/15001/environs/openstack/live_test.go File environs/openstack/live_test.go (right): https://codereview.appspot.com/7226068/diff/15001/environs/openstack/live_test.go#newcode110 environs/openstack/live_test.go:110: May as well drop this change ...
11 years, 3 months ago (2013-02-04 19:19:26 UTC) #13
dimitern
Cheers! Submitting with the proposed changes. https://codereview.appspot.com/7226068/diff/15001/environs/openstack/live_test.go File environs/openstack/live_test.go (right): https://codereview.appspot.com/7226068/diff/15001/environs/openstack/live_test.go#newcode110 environs/openstack/live_test.go:110: On 2013/02/04 19:19:26, ...
11 years, 3 months ago (2013-02-04 20:31:34 UTC) #14
dimitern
11 years, 3 months ago (2013-02-04 20:36:29 UTC) #15
*** Submitted:

openstack: bootstrap w/ public IP + fix

Now after starting the bootstrap instance, a public floating IP
address will be assigned (either available or a new one).
Also fixes mgo/api ports, because it was not building it properly
with constants.

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

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