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

Issue 55150043: state: implement EnsureAvailability

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

Description

state: implement EnsureAvailability This also changes the semantics of AddMachine so that it can only be used to add a state server machine if it's adding the bootstrap machine. After than, only EnsureAvailability can be used to add state servers. https://code.launchpad.net/~rogpeppe/juju-core/475-ensure-availability-2/+merge/202518 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: implement EnsureAvailability #

Total comments: 31

Patch Set 3 : state: implement EnsureAvailability #

Patch Set 4 : state: implement EnsureAvailability #

Unified diffs Side-by-side diffs Delta from patch set Stats (+583 lines, -248 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/destroymachine_test.go View 1 2 1 chunk +30 lines, -30 lines 0 comments Download
M juju/conn_test.go View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M juju/testing/conn.go View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M replicaset/replicaset.go View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M state/addmachine.go View 1 2 11 chunks +149 lines, -5 lines 0 comments Download
M state/api/deployer/deployer_test.go View 4 chunks +16 lines, -5 lines 0 comments Download
M state/api/keyupdater/authorisedkeys_test.go View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M state/api/uniter/state_test.go View 1 2 4 chunks +16 lines, -17 lines 0 comments Download
M state/api/uniter/uniter_test.go View 1 2 2 chunks +14 lines, -5 lines 0 comments Download
M state/apiserver/client/client_test.go View 1 2 6 chunks +10 lines, -10 lines 0 comments Download
M state/apiserver/client/destroy.go View 1 chunk +1 line, -1 line 0 comments Download
M state/apiserver/client/destroy_test.go View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 2 25 chunks +42 lines, -30 lines 0 comments Download
M state/apiserver/uniter/uniter_test.go View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M state/assign_test.go View 1 2 2 chunks +11 lines, -8 lines 0 comments Download
M state/export_test.go View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M state/machine.go View 1 2 3 chunks +14 lines, -15 lines 0 comments Download
M state/machine_test.go View 1 2 13 chunks +25 lines, -35 lines 0 comments Download
M state/megawatcher_internal_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M state/open.go View 1 2 3 2 chunks +25 lines, -21 lines 0 comments Download
M state/state.go View 1 2 1 chunk +23 lines, -7 lines 0 comments Download
M state/state_test.go View 1 2 8 chunks +186 lines, -46 lines 0 comments Download

Messages

Total messages: 7
rog
Please take a look.
10 years, 3 months ago (2014-01-21 19:02:11 UTC) #1
dimitern
Looks great in general, just a few minor suggestions and questions below. https://codereview.appspot.com/55150043/diff/20001/state/addmachine.go File state/addmachine.go ...
10 years, 3 months ago (2014-01-22 09:29:06 UTC) #2
fwereade
Just a couple of quick comments, might be able to circle back and look more ...
10 years, 3 months ago (2014-01-22 10:31:57 UTC) #3
natefinch
LGTM with a couple small items. https://codereview.appspot.com/55150043/diff/20001/state/addmachine.go File state/addmachine.go (right): https://codereview.appspot.com/55150043/diff/20001/state/addmachine.go#newcode205 state/addmachine.go:205: if jset[JobManageState] { ...
10 years, 3 months ago (2014-01-22 12:20:51 UTC) #4
fwereade
there's a couple of other comments I made earlier I don't think you spotted https://codereview.appspot.com/55150043/diff/20001/state/addmachine.go ...
10 years, 3 months ago (2014-01-24 16:56:25 UTC) #5
rog
I forgot to publish these. https://codereview.appspot.com/55150043/diff/20001/state/addmachine.go File state/addmachine.go (right): https://codereview.appspot.com/55150043/diff/20001/state/addmachine.go#newcode205 state/addmachine.go:205: if jset[JobManageState] { On ...
10 years, 3 months ago (2014-01-24 17:01:31 UTC) #6
rog
10 years, 3 months ago (2014-01-25 11:59:47 UTC) #7
Please take a look.

https://codereview.appspot.com/55150043/diff/20001/state/state.go
File state/state.go (right):

https://codereview.appspot.com/55150043/diff/20001/state/state.go#newcode1093
state/state.go:1093: // TODO(rog) export this method when the stateServers
On 2014/01/24 17:01:31, rog wrote:
> On 2014/01/22 09:29:07, dimitern wrote:
> > Is this TODO relevant anymore?
> 
> ha, no, good catch; i can export it now.

Done.
Sign in to reply to this message.

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