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

Issue 9708044: state/api: Rest of provisioner API calls (Closed)

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

Description

state/api: Rest of provisioner API calls New calls added to the API needed by the provisioner: * Machine.Remove * Machine.Series * Machine.Constraints * Machine.SetProvisioned * Machine.Status * State.AllMachines All of the above are agent-only APIs, and except for Series, currently can be called only by the environment manager. SetMongoPassword is not needed anymore for the agents, because it's handled by the API server when calling SetPassword (see https://codereview.appspot.com/9723043). Some cleanup was performed driving by the code, like improved comments and removed redundant ones. https://code.launchpad.net/~dimitern/juju-core/044-machine-api-provisioner/+merge/165635 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/api: Rest of provisioner API calls #

Patch Set 3 : state/api: Rest of provisioner API calls #

Total comments: 10

Patch Set 4 : state/api: Rest of provisioner API calls #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -36 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/api/apiclient.go View 1 2 3 3 chunks +60 lines, -0 lines 0 comments Download
M state/api/params/params.go View 1 2 3 3 chunks +25 lines, -0 lines 0 comments Download
M state/apiserver/api_test.go View 1 2 3 19 chunks +279 lines, -31 lines 0 comments Download
M state/apiserver/apiserver.go View 1 2 3 4 chunks +85 lines, -5 lines 0 comments Download

Messages

Total messages: 6
dimitern
Please take a look.
10 years, 11 months ago (2013-05-24 14:43:52 UTC) #1
dimitern
Please take a look.
10 years, 11 months ago (2013-05-24 14:48:02 UTC) #2
dimitern
Please take a look.
10 years, 11 months ago (2013-05-24 14:50:40 UTC) #3
mue
LGTM
10 years, 11 months ago (2013-05-24 14:58:09 UTC) #4
rog
LGTM with a few minor comments. nice. https://codereview.appspot.com/9708044/diff/1006/state/api/apiclient.go File state/api/apiclient.go (right): https://codereview.appspot.com/9708044/diff/1006/state/api/apiclient.go#newcode398 state/api/apiclient.go:398: func (m ...
10 years, 11 months ago (2013-05-24 15:18:04 UTC) #5
dimitern
10 years, 11 months ago (2013-05-24 15:36:49 UTC) #6
*** Submitted:

state/api: Rest of provisioner API calls

New calls added to the API needed by the provisioner:
* Machine.Remove
* Machine.Series
* Machine.Constraints
* Machine.SetProvisioned
* Machine.Status
* State.AllMachines

All of the above are agent-only APIs, and except for
Series, currently can be called only by the environment
manager.

SetMongoPassword is not needed anymore for the agents,
because it's handled by the API server when calling
SetPassword (see https://codereview.appspot.com/9723043).

Some cleanup was performed driving by the code,
like improved comments and removed redundant ones.

R=mue, rog
CC=
https://codereview.appspot.com/9708044

https://codereview.appspot.com/9708044/diff/1006/state/api/apiclient.go
File state/api/apiclient.go (right):

https://codereview.appspot.com/9708044/diff/1006/state/api/apiclient.go#newco...
state/api/apiclient.go:398: func (m *Machine) SetMongoPassword(password string)
error {
On 2013/05/24 15:18:04, rog wrote:
> i don't think we should have this.
> the recent CL i submitted (https://codereview.appspot.com/9723043) allows this
> in a different way.

Removed.

https://codereview.appspot.com/9708044/diff/1006/state/apiserver/api_test.go
File state/apiserver/api_test.go (right):

https://codereview.appspot.com/9708044/diff/1006/state/apiserver/api_test.go#...
state/apiserver/api_test.go:89: allow: []string{"machine-0"},
On 2013/05/24 15:18:04, rog wrote:
> this can go

Done.

https://codereview.appspot.com/9708044/diff/1006/state/apiserver/api_test.go#...
state/apiserver/api_test.go:352: c.Check(err.Error(), Matches, `cannot set
instance id of machine "1": already set`)
On 2013/05/24 15:18:04, rog wrote:
> c.Check(err, ErrorMatches, ...)

Done.

https://codereview.appspot.com/9708044/diff/1006/state/apiserver/api_test.go#...
state/apiserver/api_test.go:639: 
On 2013/05/24 15:18:04, rog wrote:
> d

Done.

https://codereview.appspot.com/9708044/diff/1006/state/apiserver/api_test.go#...
state/apiserver/api_test.go:1170: // TODO (dimitern): If we change the
permissions for
On 2013/05/24 15:18:04, rog wrote:
> that's not really a TODO - more of a note.
> i'd prefer TODOs for things we actually need to do.

changed to NOTE.
Sign in to reply to this message.

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