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

Issue 7005047: state: machine death restrictions

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

Description

state: machine death restrictions Machine.EnsureDying and .EnsureDead will now fail when the machine is running JobManageEnviron, or when it has units assigned. https://code.launchpad.net/~fwereade/juju-core/machine-death-restrictions/+merge/141088 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 10

Patch Set 2 : state: machine death restrictions #

Patch Set 3 : state: machine death restrictions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -42 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M state/assign_test.go View 1 chunk +0 lines, -27 lines 0 comments Download
M state/life.go View 1 chunk +5 lines, -0 lines 0 comments Download
M state/machine.go View 1 1 chunk +104 lines, -14 lines 0 comments Download
M state/machine_test.go View 1 2 chunks +40 lines, -1 line 0 comments Download

Messages

Total messages: 11
fwereade
Please take a look.
11 years, 4 months ago (2012-12-21 15:16:21 UTC) #1
dimitern
LGTM, but I have a couple of questions. https://codereview.appspot.com/7005047/diff/1/state/machine.go File state/machine.go (right): https://codereview.appspot.com/7005047/diff/1/state/machine.go#newcode162 state/machine.go:162: for ...
11 years, 4 months ago (2013-01-03 22:19:03 UTC) #2
fwereade
On 2013/01/03 22:19:03, dimitern wrote: > LGTM, but I have a couple of questions. > ...
11 years, 4 months ago (2013-01-04 08:30:36 UTC) #3
dimitern
On 2013/01/04 08:30:36, fwereade wrote: > On 2013/01/03 22:19:03, dimitern wrote: > > LGTM, but ...
11 years, 4 months ago (2013-01-04 09:14:14 UTC) #4
fwereade
On 2013/01/04 09:14:14, dimitern wrote: > On 2013/01/04 08:30:36, fwereade wrote: > > On 2013/01/03 ...
11 years, 4 months ago (2013-01-04 10:38:34 UTC) #5
rog
needs some thought, i think. some suggestions below. https://codereview.appspot.com/7005047/diff/1/state/machine.go File state/machine.go (right): https://codereview.appspot.com/7005047/diff/1/state/machine.go#newcode140 state/machine.go:140: if ...
11 years, 4 months ago (2013-01-07 09:48:49 UTC) #6
fwereade
Please take a look. https://codereview.appspot.com/7005047/diff/1/state/machine.go File state/machine.go (right): https://codereview.appspot.com/7005047/diff/1/state/machine.go#newcode140 state/machine.go:140: if j == JobManageEnviron { ...
11 years, 4 months ago (2013-01-07 11:59:52 UTC) #7
rog
one more comment https://codereview.appspot.com/7005047/diff/1/state/machine.go File state/machine.go (right): https://codereview.appspot.com/7005047/diff/1/state/machine.go#newcode157 state/machine.go:157: defer func() { i'm not sure ...
11 years, 4 months ago (2013-01-07 12:21:29 UTC) #8
rog
LGTM modulo above comment.
11 years, 4 months ago (2013-01-07 12:23:27 UTC) #9
rog
https://codereview.appspot.com/7005047/diff/1/state/machine.go File state/machine.go (right): https://codereview.appspot.com/7005047/diff/1/state/machine.go#newcode157 state/machine.go:157: defer func() { On 2013/01/07 12:21:29, rog wrote: > ...
11 years, 4 months ago (2013-01-07 12:25:03 UTC) #10
fwereade
11 years, 4 months ago (2013-01-07 12:33:45 UTC) #11
*** Submitted:

state: machine death restrictions

Machine.EnsureDying and .EnsureDead will now fail when the machine is
running JobManageEnviron, or when it has units assigned.

R=dimitern, rog
CC=
https://codereview.appspot.com/7005047
Sign in to reply to this message.

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