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

Issue 11713043: state/api(server)/deployer: AssignedMachineTag (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by dimitern
Modified:
10 years, 9 months ago
Reviewers:
mue, mp+176360, rog
Visibility:
Public.

Description

state/api(server)/deployer: AssignedMachineTag Last yet not implemented API call needed by the deployer worker. Next in line is the actual migration from state calls to API calls in the deployer. https://code.launchpad.net/~dimitern/juju-core/077-deployer-uses-api/+merge/176360 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 9

Patch Set 2 : state/api(server)/deployer: AssignedMachineTag #

Total comments: 6

Patch Set 3 : state/api(server)/deployer: AssignedMachineTag #

Patch Set 4 : state/api(server)/deployer: AssignedMachineTag #

Total comments: 4

Patch Set 5 : state/api(server)/deployer: AssignedMachineTag #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -1 line) Patch
A [revision details] View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/deployer/deployer.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M state/api/deployer/deployer_test.go View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
M state/api/deployer/unit.go View 1 2 3 3 chunks +22 lines, -0 lines 0 comments Download
M state/api/params/internal.go View 1 1 chunk +12 lines, -0 lines 0 comments Download
M state/apiserver/deployer/deployer.go View 1 2 3 4 2 chunks +37 lines, -0 lines 0 comments Download
M state/apiserver/deployer/deployer_test.go View 1 2 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 9
dimitern
Please take a look.
10 years, 9 months ago (2013-07-23 11:54:43 UTC) #1
mue
LGTM
10 years, 9 months ago (2013-07-23 12:05:16 UTC) #2
rog
good direction, but I think the call semantics could use some refinement. https://codereview.appspot.com/11713043/diff/1/state/api/deployer/unit.go File state/api/deployer/unit.go ...
10 years, 9 months ago (2013-07-23 12:13:45 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/11713043/diff/1/state/api/deployer/unit.go File state/api/deployer/unit.go (right): https://codereview.appspot.com/11713043/diff/1/state/api/deployer/unit.go#newcode70 state/api/deployer/unit.go:70: // SetPassword changes the unit's ...
10 years, 9 months ago (2013-07-23 12:46:10 UTC) #4
rog
a couple more comments https://codereview.appspot.com/11713043/diff/8001/state/api/deployer/unit.go File state/api/deployer/unit.go (right): https://codereview.appspot.com/11713043/diff/8001/state/api/deployer/unit.go#newcode89 state/api/deployer/unit.go:89: // CanDeploy returns is the ...
10 years, 9 months ago (2013-07-23 14:10:11 UTC) #5
dimitern
Please take a look.
10 years, 9 months ago (2013-07-23 15:48:00 UTC) #6
dimitern
Please take a look. https://codereview.appspot.com/11713043/diff/8001/state/api/deployer/unit.go File state/api/deployer/unit.go (right): https://codereview.appspot.com/11713043/diff/8001/state/api/deployer/unit.go#newcode89 state/api/deployer/unit.go:89: // CanDeploy returns is the ...
10 years, 9 months ago (2013-07-23 15:50:29 UTC) #7
rog
LGTM with a couple of trivial suggestions below https://codereview.appspot.com/11713043/diff/18001/state/api/deployer/unit.go File state/api/deployer/unit.go (right): https://codereview.appspot.com/11713043/diff/18001/state/api/deployer/unit.go#newcode102 state/api/deployer/unit.go:102: } ...
10 years, 9 months ago (2013-07-23 15:57:12 UTC) #8
dimitern
10 years, 9 months ago (2013-07-23 16:11:30 UTC) #9
Please take a look.

https://codereview.appspot.com/11713043/diff/18001/state/api/deployer/unit.go
File state/api/deployer/unit.go (right):

https://codereview.appspot.com/11713043/diff/18001/state/api/deployer/unit.go...
state/api/deployer/unit.go:102: }
On 2013/07/23 15:57:12, rog wrote:
> possible suggestion:
> 
> return result.Results[0].Result, result.Results[0].Error.Err()

params.Error doesn't have Err() method (yet). Will add in a separate CL, after I
finish the deployer API migration.

https://codereview.appspot.com/11713043/diff/18001/state/apiserver/deployer/d...
File state/apiserver/deployer/deployer.go (right):

https://codereview.appspot.com/11713043/diff/18001/state/apiserver/deployer/d...
state/apiserver/deployer/deployer.go:132: // This means we got some other error
from state.
On 2013/07/23 15:57:12, rog wrote:
> // This means the unit wasn't assigned to the machine agent
> // or it wasn't found. In both cases we just return false so
> // as not to leak information about the existence of a unit
> // to a potentially rogue machine agent.
> 
> ?

Done.
Sign in to reply to this message.

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