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

Issue 6404051: firewaller: added handling of machine units changes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by TheMue
Modified:
11 years, 8 months ago
Reviewers:
mp+115167
Visibility:
Public.

Description

firewaller: added handling of machine units changes The second iteration of the firewaller adds the handling of changes of the machine units. Here the adding of services is missing and will be one of the next steps. The next step itself will be the handling of unit ports changes. https://code.launchpad.net/~themue/juju-core/go-worker-firewaller-machineunits/+merge/115167 Requires: https://code.launchpad.net/~themue/juju-core/go-worker-firewaller-machines/+merge/114938 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 13

Patch Set 2 : firewaller: added handling of machine units changes #

Patch Set 3 : firewaller: added handling of machine units changes #

Patch Set 4 : firewaller: added handling of machine units changes #

Patch Set 5 : firewaller: added handling of machine units changes #

Patch Set 6 : firewaller: added handling of machine units changes #

Patch Set 7 : firewaller: added handling of machine units changes #

Total comments: 6

Patch Set 8 : firewaller: added handling of machine units changes #

Total comments: 38

Patch Set 9 : firewaller: added handling of machine units changes #

Total comments: 8

Patch Set 10 : firewaller: added handling of machine units changes #

Patch Set 11 : firewaller: added handling of machine units changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -92 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M worker/firewaller/firewaller.go View 1 2 3 4 5 6 7 8 9 10 4 chunks +166 lines, -86 lines 0 comments Download
M worker/firewaller/firewaller_test.go View 1 2 3 4 5 6 7 8 4 chunks +48 lines, -6 lines 0 comments Download

Messages

Total messages: 14
TheMue
Please take a look.
11 years, 9 months ago (2012-07-16 15:05:49 UTC) #1
rog
LGTM https://codereview.appspot.com/6404051/diff/1/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/1/worker/firewaller/firewaller.go#newcode101 worker/firewaller/firewaller.go:101: if change.stateChange != nil { when could change.stateChange ...
11 years, 9 months ago (2012-07-16 16:58:02 UTC) #2
TheMue
Added comments, more later. https://codereview.appspot.com/6404051/diff/1/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/1/worker/firewaller/firewaller.go#newcode101 worker/firewaller/firewaller.go:101: if change.stateChange != nil { ...
11 years, 9 months ago (2012-07-16 17:24:43 UTC) #3
fwereade
Essentially, same issues as the prereq. https://codereview.appspot.com/6404051/diff/1/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/1/worker/firewaller/firewaller.go#newcode98 worker/firewaller/firewaller.go:98: fw.tomb.Killf("aggregation of machine ...
11 years, 9 months ago (2012-07-16 23:42:29 UTC) #4
niemeyer
There are unhandled reviews on this. I'll wait for the next round.
11 years, 9 months ago (2012-07-19 00:21:59 UTC) #5
TheMue
Please take a look. https://codereview.appspot.com/6404051/diff/1/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/1/worker/firewaller/firewaller.go#newcode98 worker/firewaller/firewaller.go:98: fw.tomb.Killf("aggregation of machine units changes ...
11 years, 9 months ago (2012-07-19 15:13:49 UTC) #6
rog
LGTM https://codereview.appspot.com/6404051/diff/11057/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/11057/worker/firewaller/firewaller.go#newcode64 worker/firewaller/firewaller.go:64: case change, ok := <-fw.machineUnitsChanges: we never close ...
11 years, 9 months ago (2012-07-19 17:04:04 UTC) #7
TheMue
Please take a look. https://codereview.appspot.com/6404051/diff/11057/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/11057/worker/firewaller/firewaller.go#newcode64 worker/firewaller/firewaller.go:64: case change, ok := <-fw.machineUnitsChanges: ...
11 years, 9 months ago (2012-07-23 15:20:57 UTC) #8
niemeyer
https://codereview.appspot.com/6404051/diff/13004/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/13004/worker/firewaller/firewaller.go#newcode16 worker/firewaller/firewaller.go:16: machines map[int]*machineTracker s/machines/machineTrackers https://codereview.appspot.com/6404051/diff/13004/worker/firewaller/firewaller.go#newcode18 worker/firewaller/firewaller.go:18: units map[string]*unitTracker s/units/unitTrackers/ https://codereview.appspot.com/6404051/diff/13004/worker/firewaller/firewaller.go#newcode20 ...
11 years, 9 months ago (2012-07-23 18:58:05 UTC) #9
TheMue
Please take a look. https://codereview.appspot.com/6404051/diff/13004/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/13004/worker/firewaller/firewaller.go#newcode16 worker/firewaller/firewaller.go:16: machines map[int]*machineTracker On 2012/07/23 18:58:05, ...
11 years, 9 months ago (2012-07-24 09:24:44 UTC) #10
niemeyer
LGTM https://codereview.appspot.com/6404051/diff/10058/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/10058/worker/firewaller/firewaller.go#newcode16 worker/firewaller/firewaller.go:16: machineDatas map[int]*machineData As discussed: machineds, unitds, serviceds https://codereview.appspot.com/6404051/diff/10058/worker/firewaller/firewaller.go#newcode17 ...
11 years, 9 months ago (2012-07-24 13:29:21 UTC) #11
TheMue
Please take a look. https://codereview.appspot.com/6404051/diff/10058/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6404051/diff/10058/worker/firewaller/firewaller.go#newcode16 worker/firewaller/firewaller.go:16: machineDatas map[int]*machineData On 2012/07/24 13:29:21, ...
11 years, 9 months ago (2012-07-25 08:23:54 UTC) #12
niemeyer
LGTM
11 years, 9 months ago (2012-07-25 08:50:58 UTC) #13
TheMue
11 years, 9 months ago (2012-07-25 09:27:31 UTC) #14
*** Submitted:

firewaller: added handling of machine units changes

The second iteration of the firewaller adds the handling of
changes of the machine units. Here the adding of services is
missing and will be one of the next steps. The next step 
itself will be the handling of unit ports changes.

R=rog, fwereade, niemeyer
CC=
https://codereview.appspot.com/6404051
Sign in to reply to this message.

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