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

Issue 82470043: Remove obsolete Public/PrivateAddress methods (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years ago by wallyworld
Modified:
10 years, 12 months ago
Reviewers:
mp+213404, axw, fwereade
Visibility:
Public.

Description

Remove obsolete Public/PrivateAddress methods The PublicAddress() and PrivateAddress() methods on environs.EnvironProvider are no longer needed since units now get their addresses from their assigned machine, and these addresses are updated by the instanc poller. Extra logic was required to allow the existing machineAddresses method to be able to handle subordinate units. This work allows the Joyent provider to be enabled. Smoke tested by hand on Joyent, local, EC2, HP CLoud and Azure: bootstrap environment, deploy a unit or two and check status. For Joyent, do a little more testing and ensure wordpress works. https://code.launchpad.net/~wallyworld/juju-core/remove-provider-addr-methods/+merge/213404 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove obsolete Public/PrivateAddress methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -552 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/interface.go View 1 chunk +0 lines, -6 lines 0 comments Download
M provider/all/all.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/azure/environprovider.go View 2 chunks +0 lines, -105 lines 0 comments Download
M provider/azure/environprovider_test.go View 2 chunks +0 lines, -112 lines 0 comments Download
M provider/dummy/environs.go View 1 chunk +0 lines, -8 lines 0 comments Download
M provider/ec2/ec2.go View 3 chunks +0 lines, -42 lines 0 comments Download
M provider/ec2/export_test.go View 1 chunk +0 lines, -12 lines 0 comments Download
M provider/ec2/local_test.go View 1 chunk +0 lines, -20 lines 0 comments Download
M provider/joyent/provider.go View 1 chunk +0 lines, -17 lines 0 comments Download
M provider/local/environprovider.go View 1 chunk +0 lines, -16 lines 0 comments Download
M provider/maas/environprovider.go View 2 chunks +0 lines, -26 lines 0 comments Download
M provider/maas/environprovider_test.go View 2 chunks +0 lines, -26 lines 0 comments Download
M provider/manual/provider.go View 1 chunk +0 lines, -13 lines 0 comments Download
M provider/openstack/export_test.go View 1 chunk +0 lines, -26 lines 0 comments Download
M provider/openstack/local_test.go View 1 chunk +0 lines, -38 lines 0 comments Download
M provider/openstack/provider.go View 2 chunks +0 lines, -31 lines 0 comments Download
M state/unit.go View 1 2 chunks +6 lines, -4 lines 0 comments Download
M state/unit_test.go View 3 chunks +60 lines, -12 lines 0 comments Download
M worker/uniter/modes.go View 2 chunks +0 lines, -26 lines 0 comments Download
M worker/uniter/uniter_test.go View 6 chunks +28 lines, -11 lines 0 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
11 years ago (2014-03-31 05:23:26 UTC) #1
axw
This makes me very happy. LGTM with suggested simplification. It would be nice to drop ...
11 years ago (2014-03-31 05:34:47 UTC) #2
wallyworld
There's already a bug raised for this: lp:1221798 https://codereview.appspot.com/82470043/diff/1/state/unit.go File state/unit.go (right): https://codereview.appspot.com/82470043/diff/1/state/unit.go#newcode502 state/unit.go:502: // ...
11 years ago (2014-03-31 07:13:10 UTC) #3
wallyworld
Please take a look.
11 years ago (2014-03-31 07:15:28 UTC) #4
fwereade
11 years ago (2014-03-31 07:26:45 UTC) #5
w00t!
Sign in to reply to this message.

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