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

Issue 28880043: state: add Life to state.Environment

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by axw
Modified:
11 years, 2 months ago
Reviewers:
mue, mp+195710, fwereade
Visibility:
Public.

Description

state: add Life to state.Environment Environment has been given new methods to mark an environment as dying, and to remove the environment from state. An environment must now exist in state and be Alive for services or machines to be added to state. A secondary change here is to use the environment's UUID in the tag, rather than the environment's name, which is non-unique. We continue to accept the name as input, until we know all users are passing in UUIDs. https://code.launchpad.net/~axwalk/juju-core/state-environment-life/+merge/195710 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : state: add Life to state.Environment #

Total comments: 24

Patch Set 3 : state: add Life to state.Environment #

Total comments: 6

Patch Set 4 : state: add Life to state.Environment #

Total comments: 16

Patch Set 5 : state: add Life to state.Environment #

Total comments: 18

Patch Set 6 : state: add Life to state.Environment #

Patch Set 7 : state: add Life to state.Environment #

Patch Set 8 : state: add Life to state.Environment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+300 lines, -39 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M names/environ.go View 1 2 3 1 chunk +9 lines, -7 lines 0 comments Download
M state/addmachine.go View 1 2 3 4 5 6 7 2 chunks +14 lines, -0 lines 0 comments Download
M state/cleanup.go View 1 2 3 4 5 6 7 2 chunks +22 lines, -0 lines 0 comments Download
M state/cleanup_test.go View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
M state/environ.go View 1 2 3 4 5 6 3 chunks +69 lines, -13 lines 0 comments Download
M state/environ_test.go View 1 chunk +1 line, -3 lines 0 comments Download
M state/initialize_test.go View 1 2 3 4 5 6 7 2 chunks +9 lines, -4 lines 0 comments Download
M state/interface.go View 1 chunk +1 line, -0 lines 0 comments Download
M state/state.go View 1 2 3 4 5 6 7 5 chunks +34 lines, -6 lines 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 9 chunks +92 lines, -6 lines 0 comments Download
M state/watcher.go View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18
axw
Please take a look.
11 years, 3 months ago (2013-11-19 06:47:52 UTC) #1
axw
On 2013/11/19 06:47:52, axw wrote: > Please take a look. I should have mentioned in ...
11 years, 3 months ago (2013-11-19 07:00:22 UTC) #2
mue
LGTM, only a real minor comment. https://codereview.appspot.com/28880043/diff/1/names/environ.go File names/environ.go (right): https://codereview.appspot.com/28880043/diff/1/names/environ.go#newcode15 names/environ.go:15: // IsEnvironment returns ...
11 years, 3 months ago (2013-11-20 15:24:18 UTC) #3
axw
Please take a look. https://codereview.appspot.com/28880043/diff/1/names/environ.go File names/environ.go (right): https://codereview.appspot.com/28880043/diff/1/names/environ.go#newcode15 names/environ.go:15: // IsEnvironment returns whether id ...
11 years, 3 months ago (2013-11-21 03:15:08 UTC) #4
fwereade
Needs a bit more thought, I'm afraid. https://codereview.appspot.com/28880043/diff/20001/names/environ.go File names/environ.go (right): https://codereview.appspot.com/28880043/diff/20001/names/environ.go#newcode16 names/environ.go:16: func IsEnvironment(id ...
11 years, 3 months ago (2013-11-21 13:04:18 UTC) #5
axw
Please take a look. https://codereview.appspot.com/28880043/diff/20001/names/environ.go File names/environ.go (right): https://codereview.appspot.com/28880043/diff/20001/names/environ.go#newcode16 names/environ.go:16: func IsEnvironment(id string) bool { ...
11 years, 2 months ago (2013-11-28 09:42:48 UTC) #6
fwereade
Nearly there, I think. I do feel that accepting both env-tag kinds is the best ...
11 years, 2 months ago (2013-12-02 08:58:18 UTC) #7
axw
Please take a look. https://codereview.appspot.com/28880043/diff/20001/state/environ.go File state/environ.go (right): https://codereview.appspot.com/28880043/diff/20001/state/environ.go#newcode85 state/environ.go:85: Assert: notDeadDoc, On 2013/12/02 08:58:18, ...
11 years, 2 months ago (2013-12-04 05:28:49 UTC) #8
axw
https://codereview.appspot.com/28880043/diff/20001/state/state_test.go File state/state_test.go (right): https://codereview.appspot.com/28880043/diff/20001/state/state_test.go#newcode567 state/state_test.go:567: } On 2013/12/04 05:28:49, axw wrote: > On 2013/12/02 ...
11 years, 2 months ago (2013-12-04 06:45:10 UTC) #9
fwereade
Last few trivials. Thanks for bearing with me on this. https://codereview.appspot.com/28880043/diff/60001/state/cleanup.go File state/cleanup.go (right): https://codereview.appspot.com/28880043/diff/60001/state/cleanup.go#newcode108 ...
11 years, 2 months ago (2013-12-04 14:03:23 UTC) #10
axw
Please take a look. https://codereview.appspot.com/28880043/diff/60001/state/cleanup.go File state/cleanup.go (right): https://codereview.appspot.com/28880043/diff/60001/state/cleanup.go#newcode108 state/cleanup.go:108: for iter.Next(&service.doc) { On 2013/12/04 ...
11 years, 2 months ago (2013-12-06 08:37:39 UTC) #11
fwereade
Final round of trivials. LGTM with the below if they're clear to you. https://codereview.appspot.com/28880043/diff/60001/state/cleanup.go File ...
11 years, 2 months ago (2013-12-09 10:14:40 UTC) #12
axw
https://codereview.appspot.com/28880043/diff/80001/state/environ.go File state/environ.go (right): https://codereview.appspot.com/28880043/diff/80001/state/environ.go#newcode90 state/environ.go:90: // manual machines exist. On 2013/12/09 10:14:41, fwereade wrote: ...
11 years, 2 months ago (2013-12-09 13:27:05 UTC) #13
axw
Please take a look. https://codereview.appspot.com/28880043/diff/80001/state/environ.go File state/environ.go (right): https://codereview.appspot.com/28880043/diff/80001/state/environ.go#newcode104 state/environ.go:104: err = e.Refresh() On 2013/12/09 ...
11 years, 2 months ago (2013-12-11 07:35:19 UTC) #14
fwereade
https://codereview.appspot.com/28880043/diff/80001/state/environ.go File state/environ.go (right): https://codereview.appspot.com/28880043/diff/80001/state/environ.go#newcode90 state/environ.go:90: // manual machines exist. On 2013/12/09 13:27:05, axw wrote: ...
11 years, 2 months ago (2013-12-11 07:46:22 UTC) #15
axw
On 2013/12/11 07:46:22, fwereade wrote: > https://codereview.appspot.com/28880043/diff/80001/state/environ.go > File state/environ.go (right): > > https://codereview.appspot.com/28880043/diff/80001/state/environ.go#newcode90 > ...
11 years, 2 months ago (2013-12-11 08:17:21 UTC) #16
axw
Please take a look. https://codereview.appspot.com/28880043/diff/80001/state/state.go File state/state.go (right): https://codereview.appspot.com/28880043/diff/80001/state/state.go#newcode492 state/state.go:492: return nil, fmt.Errorf("environment is no ...
11 years, 2 months ago (2013-12-11 08:54:30 UTC) #17
axw
11 years, 2 months ago (2013-12-11 09:18:47 UTC) #18
Please take a look.
Sign in to reply to this message.

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