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

Issue 6625069: state: update MachinePrincipalUnitsWatcher (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 7 months ago by aram
Modified:
11 years, 6 months ago
Reviewers:
mp+128740, niemeyer, TheMue
Visibility:
Public.

Description

state: update MachinePrincipalUnitsWatcher Add lifecycle support to the MachinePrincipalUnitsWatcher making it a new style watcher that only returns ids. The firewaller and the machiner have been modified to use the new watcher model. Additionally fix a bug in the machine units watcher where it did not return unassigned machines. https://code.launchpad.net/~aramh/juju-core/106-state-watchers-machine-principals5/+merge/128740 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: update MachinePrincipalUnitsWatcher #

Total comments: 3

Patch Set 3 : state: update MachinePrincipalUnitsWatcher #

Patch Set 4 : state: update MachinePrincipalUnitsWatcher #

Total comments: 21

Patch Set 5 : state: update MachinePrincipalUnitsWatcher #

Total comments: 7

Patch Set 6 : state: update MachinePrincipalUnitsWatcher #

Unified diffs Side-by-side diffs Delta from patch set Stats (+548 lines, -504 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/jujud/machine.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M state/machine_test.go View 1 2 3 4 5 17 chunks +315 lines, -329 lines 0 comments Download
M state/unit.go View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M state/watcher.go View 1 2 3 4 5 3 chunks +123 lines, -118 lines 0 comments Download
M worker/firewaller/firewaller.go View 1 2 3 4 5 4 chunks +74 lines, -39 lines 0 comments Download
M worker/machiner/export_test.go View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M worker/machiner/machiner.go View 1 2 3 4 3 chunks +20 lines, -13 lines 0 comments Download
M worker/machiner/machiner_test.go View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14
aram
Please take a look.
11 years, 7 months ago (2012-10-09 15:30:56 UTC) #1
aram
Please take a look.
11 years, 7 months ago (2012-10-09 15:32:55 UTC) #2
TheMue
LGTM
11 years, 7 months ago (2012-10-09 15:58:06 UTC) #3
niemeyer
LGTM with the same comment. You definitely nailed it down. https://codereview.appspot.com/6625069/diff/3001/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6625069/diff/3001/state/watcher.go#newcode1350 ...
11 years, 7 months ago (2012-10-09 22:13:56 UTC) #4
aram
Please take a look.
11 years, 6 months ago (2012-10-10 15:53:20 UTC) #5
aram
Addressed review points. Not submitting because I'm waiting for changes in firewaller and machiner, so ...
11 years, 6 months ago (2012-10-10 15:54:07 UTC) #6
aram
Please take a look.
11 years, 6 months ago (2012-10-11 15:10:54 UTC) #7
niemeyer
https://codereview.appspot.com/6625069/diff/10001/state/unit.go File state/unit.go (right): https://codereview.appspot.com/6625069/diff/10001/state/unit.go#newcode407 state/unit.go:407: // IsAssigned return true if the unit, which must ...
11 years, 6 months ago (2012-10-12 03:51:36 UTC) #8
aram
https://codereview.appspot.com/6625069/diff/10001/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6625069/diff/10001/state/watcher.go#newcode647 state/watcher.go:647: if doc.MachineId == nil || doc.Life != life { ...
11 years, 6 months ago (2012-10-12 15:42:51 UTC) #9
aram
Please take a look.
11 years, 6 months ago (2012-10-12 15:45:14 UTC) #10
niemeyer
https://codereview.appspot.com/6625069/diff/10001/state/unit.go File state/unit.go (right): https://codereview.appspot.com/6625069/diff/10001/state/unit.go#newcode407 state/unit.go:407: // IsAssigned return true if the unit, which must ...
11 years, 6 months ago (2012-10-15 14:11:44 UTC) #11
aram
https://codereview.appspot.com/6625069/diff/10001/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6625069/diff/10001/worker/firewaller/firewaller.go#newcode77 worker/firewaller/firewaller.go:77: for _, uname := range change.unames { > The ...
11 years, 6 months ago (2012-10-15 14:54:29 UTC) #12
niemeyer
I feel some negativity in your comments. Talking generally helps, but I cannot talk to ...
11 years, 6 months ago (2012-10-15 15:08:14 UTC) #13
aram
11 years, 6 months ago (2012-10-17 16:13:16 UTC) #14
I've split it into multiple branches.
Sign in to reply to this message.

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