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

Issue 60930043: Unit agents know their assigned machine (Closed)

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

Description

Unit agents know their assigned machine The unit agent conf file has a new value called MACHINE_TAG added when the unit is deployed. The value is the tag of the machine on which the unit is deployed. To allow new tools to run on older deployments without the updated agent conf file, a new Uniter API is provided which allows the unit agent to look up the assigned machine over the API. The API will be removed when it is possible to have all current unit agent config files upgraded. This functionality is used by a downstream branch which reworks the uniter upgrade worker. https://code.launchpad.net/~wallyworld/juju-core/unit-agent-knows-assigned-machine/+merge/205291 Requires: https://code.launchpad.net/~wallyworld/juju-core/machiner-access-for-uniter/+merge/205290 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Unit agents know their assigned machine #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -22 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 1 chunk +1 line, -0 lines 2 comments Download
M state/api/uniter/unit.go View 19 chunks +43 lines, -19 lines 0 comments Download
M state/api/uniter/unit_test.go View 2 chunks +24 lines, -0 lines 0 comments Download
M state/api/uniter/uniter.go View 2 chunks +2 lines, -2 lines 0 comments Download
M state/apiserver/uniter/uniter.go View 1 1 chunk +38 lines, -0 lines 0 comments Download
M state/apiserver/uniter/uniter_test.go View 1 1 chunk +32 lines, -0 lines 0 comments Download
M worker/deployer/simple.go View 2 chunks +2 lines, -0 lines 0 comments Download
M worker/deployer/simple_test.go View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 6
wallyworld
Please take a look.
10 years, 3 months ago (2014-02-07 07:24:13 UTC) #1
dimitern
Very good direction, but I have some concerns about backward compatibility with <1.18 API servers. ...
10 years, 3 months ago (2014-02-10 08:55:04 UTC) #2
wallyworld
Please take a look. https://codereview.appspot.com/60930043/diff/1/state/api/uniter/unit.go File state/api/uniter/unit.go (right): https://codereview.appspot.com/60930043/diff/1/state/api/uniter/unit.go#newcode456 state/api/uniter/unit.go:456: err := u.st.caller.Call(uniter, "", "GetAssignedMachine", ...
10 years, 3 months ago (2014-02-11 02:39:12 UTC) #3
dimitern
LGTM https://codereview.appspot.com/60930043/diff/20001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/60930043/diff/20001/agent/agent.go#newcode34 agent/agent.go:34: BootstrapJobs = "BOOTSTRAP_JOBS" Where is this coming from? ...
10 years, 3 months ago (2014-02-11 09:52:19 UTC) #4
wallyworld
https://codereview.appspot.com/60930043/diff/20001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/60930043/diff/20001/agent/agent.go#newcode34 agent/agent.go:34: BootstrapJobs = "BOOTSTRAP_JOBS" On 2014/02/11 09:52:19, dimitern wrote: > ...
10 years, 3 months ago (2014-02-11 10:28:03 UTC) #5
fwereade
10 years, 3 months ago (2014-02-14 09:09:32 UTC) #6
On 2014/02/11 10:28:03, wallyworld wrote:
> https://codereview.appspot.com/60930043/diff/20001/agent/agent.go
> File agent/agent.go (right):
> 
> https://codereview.appspot.com/60930043/diff/20001/agent/agent.go#newcode34
> agent/agent.go:34: BootstrapJobs    = "BOOTSTRAP_JOBS"
> On 2014/02/11 09:52:19, dimitern wrote:
> > Where is this coming from? Update the CL description?
> 
> I merged trunk and shiteveld can't handle such merges properly so it gets
> confused. Launchpad has the correct diff.

as prereq, not lgtm
Sign in to reply to this message.

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