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

Issue 12218043: state: Use machine addresses from unit

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by gz
Modified:
10 years, 9 months ago
Reviewers:
dimitern, wallyworld, mp+177983, thumper
Visibility:
Public.

Description

state: Use machine addresses from unit Make Unit.PublicAddress check for addresses an associated machine by preference and select an appropriate one. This is the first step towards removing PublicAddress and PrivateAddress from unit. https://code.launchpad.net/~gz/juju-core/unit_publicaddress_from_machine/+merge/177983 Requires: https://code.launchpad.net/~gz/juju-core/machine_doc_addresses/+merge/177978 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Attempt at using machine addresses from unit #

Patch Set 3 : state: Use machine addresses from unit #

Total comments: 6

Patch Set 4 : state: Use machine addresses from unit #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -1 line) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/unit.go View 1 2 3 3 chunks +15 lines, -1 line 4 comments Download
M state/unit_test.go View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 10
gz
Please take a look.
10 years, 9 months ago (2013-08-01 01:49:45 UTC) #1
gz
Please take a look.
10 years, 9 months ago (2013-08-01 13:57:08 UTC) #2
gz
Please take a look.
10 years, 9 months ago (2013-08-01 14:21:32 UTC) #3
dimitern
LGTM modulo the below https://codereview.appspot.com/12218043/diff/11001/state/unit.go File state/unit.go (right): https://codereview.appspot.com/12218043/diff/11001/state/unit.go#newcode445 state/unit.go:445: publicaddress := u.doc.PublicAddress publicAddress please; ...
10 years, 9 months ago (2013-08-01 14:30:00 UTC) #4
gz
https://codereview.appspot.com/12218043/diff/11001/state/unit.go File state/unit.go (right): https://codereview.appspot.com/12218043/diff/11001/state/unit.go#newcode445 state/unit.go:445: publicaddress := u.doc.PublicAddress On 2013/08/01 14:30:00, dimitern wrote: > ...
10 years, 9 months ago (2013-08-01 14:40:12 UTC) #5
gz
Please take a look.
10 years, 9 months ago (2013-08-01 15:35:10 UTC) #6
wallyworld
LGTM. Perhaps with another test like Dimiter suggested. Plus the err in the log message. ...
10 years, 9 months ago (2013-08-01 23:21:52 UTC) #7
thumper
https://codereview.appspot.com/12218043/diff/18001/state/unit.go File state/unit.go (right): https://codereview.appspot.com/12218043/diff/18001/state/unit.go#newcode457 state/unit.go:457: publicAddress = instance.SelectPublicAddress(m.Addresses()) Is there likely to be a ...
10 years, 9 months ago (2013-08-02 02:24:17 UTC) #8
dimitern
https://codereview.appspot.com/12218043/diff/18001/state/unit.go File state/unit.go (right): https://codereview.appspot.com/12218043/diff/18001/state/unit.go#newcode29 state/unit.go:29: var unitLogger = loggo.GetLogger("juju.state.unit") I think this should be ...
10 years, 9 months ago (2013-08-02 08:36:53 UTC) #9
dimitern
10 years, 9 months ago (2013-08-02 08:36:53 UTC) #10
https://codereview.appspot.com/12218043/diff/18001/state/unit.go
File state/unit.go (right):

https://codereview.appspot.com/12218043/diff/18001/state/unit.go#newcode29
state/unit.go:29: var unitLogger = loggo.GetLogger("juju.state.unit")
I think this should be "juju.state" and please move it in state/state.go
perhaps?
Sign in to reply to this message.

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