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

Issue 6713054: firewaller: integrated global mode (Closed)

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

Description

firewaller: integrated global mode Firewaller now recognizes the global mode. It dies a port usage counting usage counting and opens each used port only once and closes it after the last using unit has gone. The handling of ports in case of a restart has been removed from this CL to a later one. https://code.launchpad.net/~themue/juju-core/go-firewaller-added-global-mode/+merge/130157 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3

Patch Set 2 : firewaller: integrated global mode #

Total comments: 14

Patch Set 3 : firewaller: integrated global mode #

Total comments: 1

Patch Set 4 : firewaller: integrated global mode #

Total comments: 1

Patch Set 5 : firewaller: integrated global mode #

Total comments: 2

Patch Set 6 : firewaller: integrated global mode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -6 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M worker/firewaller/firewaller.go View 1 2 3 4 5 8 chunks +116 lines, -6 lines 0 comments Download
M worker/firewaller/firewaller_test.go View 1 2 3 4 chunks +234 lines, -0 lines 0 comments Download

Messages

Total messages: 14
TheMue
Please take a look.
11 years, 7 months ago (2012-10-17 15:58:55 UTC) #1
niemeyer
Needs some love. https://codereview.appspot.com/6713054/diff/1/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6713054/diff/1/worker/firewaller/firewaller.go#newcode195 worker/firewaller/firewaller.go:195: m, err := machined.machine() Why do ...
11 years, 7 months ago (2012-10-18 00:54:13 UTC) #2
TheMue
Please take a look. https://codereview.appspot.com/6713054/diff/1/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6713054/diff/1/worker/firewaller/firewaller.go#newcode195 worker/firewaller/firewaller.go:195: m, err := machined.machine() On ...
11 years, 7 months ago (2012-10-18 16:40:34 UTC) #3
niemeyer
Much better thanks. Still, what about ports previously opened? https://codereview.appspot.com/6713054/diff/5001/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6713054/diff/5001/worker/firewaller/firewaller.go#newcode177 worker/firewaller/firewaller.go:177: ...
11 years, 7 months ago (2012-10-19 00:48:28 UTC) #4
TheMue
Please take a look. https://codereview.appspot.com/6713054/diff/5001/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6713054/diff/5001/worker/firewaller/firewaller.go#newcode177 worker/firewaller/firewaller.go:177: // flushGlobalPorts opens and closes ...
11 years, 7 months ago (2012-10-19 13:22:47 UTC) #5
niemeyer
https://codereview.appspot.com/6713054/diff/10002/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6713054/diff/10002/worker/firewaller/firewaller.go#newcode70 worker/firewaller/firewaller.go:70: err = fw.environ.ClosePorts(ports) Frank, what happens if you close ...
11 years, 7 months ago (2012-10-19 15:11:21 UTC) #6
TheMue
On 2012/10/19 15:11:21, niemeyer wrote: > https://codereview.appspot.com/6713054/diff/10002/worker/firewaller/firewaller.go > File worker/firewaller/firewaller.go (right): > > https://codereview.appspot.com/6713054/diff/10002/worker/firewaller/firewaller.go#newcode70 > ...
11 years, 7 months ago (2012-10-19 15:24:41 UTC) #7
niemeyer
On Fri, Oct 19, 2012 at 12:24 PM, <themue@gmail.com> wrote: > If it's trivial and ...
11 years, 7 months ago (2012-10-19 16:47:31 UTC) #8
TheMue
Please take a look.
11 years, 6 months ago (2012-10-22 12:15:17 UTC) #9
niemeyer
https://codereview.appspot.com/6713054/diff/14001/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6713054/diff/14001/worker/firewaller/firewaller.go#newcode191 worker/firewaller/firewaller.go:191: // Reset port counter, will be set during gathering ...
11 years, 6 months ago (2012-10-22 14:55:35 UTC) #10
TheMue
On 2012/10/22 14:55:35, niemeyer wrote: > https://codereview.appspot.com/6713054/diff/14001/worker/firewaller/firewaller.go > File worker/firewaller/firewaller.go (right): > > https://codereview.appspot.com/6713054/diff/14001/worker/firewaller/firewaller.go#newcode191 > ...
11 years, 6 months ago (2012-10-22 15:27:08 UTC) #11
TheMue
Please take a look.
11 years, 6 months ago (2012-10-22 15:45:49 UTC) #12
niemeyer
LGTM, assuming that this works with real usage. https://codereview.appspot.com/6713054/diff/9002/worker/firewaller/firewaller.go File worker/firewaller/firewaller.go (right): https://codereview.appspot.com/6713054/diff/9002/worker/firewaller/firewaller.go#newcode30 worker/firewaller/firewaller.go:30: globalPortsCount ...
11 years, 6 months ago (2012-10-29 09:28:06 UTC) #13
TheMue
11 years, 6 months ago (2012-10-29 10:23:26 UTC) #14
*** Submitted:

firewaller: integrated global mode

Firewaller now recognizes the global mode. It dies a
port usage counting usage counting and opens each
used port only once and closes it after the last using unit
has gone. The handling of ports in case of a restart has
been removed from this CL to a later one.

R=
CC=
https://codereview.appspot.com/6713054

https://codereview.appspot.com/6713054/diff/9002/worker/firewaller/firewaller.go
File worker/firewaller/firewaller.go (right):

https://codereview.appspot.com/6713054/diff/9002/worker/firewaller/firewaller...
worker/firewaller/firewaller.go:30: globalPortsCount map[state.Port]int
On 2012/10/29 09:28:07, niemeyer wrote:
> s/PortsFlag/PortOpen/
> s/PortsCount/PortRef/

Done.
Sign in to reply to this message.

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