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

Issue 7397047: Config for assigning public (floating) IP to nodes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by wallyworld
Modified:
11 years, 2 months ago
Reviewers:
mp+149752
Visibility:
Public.

Description

Config for assigning public (floating) IP to nodes A new config key, use-floating-ip (default true), is provided. If true, nodes are given a public IP address. When adding new tests, I ran into the problem that some existing tests rely on state created by other tests. I fixed this and also removed unnecessary Env duplication in the local live tests. https://code.launchpad.net/~wallyworld/juju-core/bootstrap-publicip-config/+merge/149752 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : Config for exposing bootstrap node #

Total comments: 2

Patch Set 3 : Config for assigning public (floating) IP to nodes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -50 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M environs/openstack/config.go View 1 3 chunks +6 lines, -0 lines 0 comments Download
M environs/openstack/config_test.go View 1 3 chunks +21 lines, -7 lines 0 comments Download
M environs/openstack/export_test.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M environs/openstack/live_test.go View 4 chunks +8 lines, -13 lines 0 comments Download
M environs/openstack/local_test.go View 1 2 3 chunks +61 lines, -24 lines 0 comments Download
M environs/openstack/provider.go View 1 2 5 chunks +16 lines, -6 lines 0 comments Download

Messages

Total messages: 9
wallyworld
Please take a look.
11 years, 2 months ago (2013-02-21 06:54:07 UTC) #1
dimitern
I like where this is heading, but I think it deserves a bit of a ...
11 years, 2 months ago (2013-02-21 11:06:37 UTC) #2
jameinel
I believe we decided to go back to the Python implementation, which is to just ...
11 years, 2 months ago (2013-02-21 12:22:19 UTC) #3
wallyworld
I've changed the configuration parameter to "use-floating-ip" and it is a global yes/no configuration for ...
11 years, 2 months ago (2013-02-22 01:31:16 UTC) #4
wallyworld
Please take a look.
11 years, 2 months ago (2013-02-22 01:34:34 UTC) #5
dimitern
LGTM
11 years, 2 months ago (2013-02-22 09:52:14 UTC) #6
jameinel
LGTM though I would avoid chaining function calls and defer. defer foo(...) waits to call ...
11 years, 2 months ago (2013-02-22 17:35:02 UTC) #7
wallyworld
*** Submitted: Config for assigning public (floating) IP to nodes A new config key, use-floating-ip ...
11 years, 2 months ago (2013-02-24 23:00:22 UTC) #8
wallyworld
11 years, 2 months ago (2013-02-24 23:00:48 UTC) #9
https://codereview.appspot.com/7397047/diff/8001/environs/openstack/local_tes...
File environs/openstack/local_test.go (right):

https://codereview.appspot.com/7397047/diff/8001/environs/openstack/local_tes...
environs/openstack/local_test.go:229: )()
> I think the unnamed func is probably ok. Though maybe we would like it to call
> c.Fail() at that point instead of just fmt.Errorf? I'm not sure which would
give
> us better context in debugging why addFloatingIP got called.

Calling Fail() provides no context, just "test failed". Returning an error
prints the reason for failure.
Sign in to reply to this message.

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