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

Issue 6635043: firewaller: added port counter for global mode (Closed)

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

Description

firewaller: added port counter for global mode For the global mode the firewaller now counts the number of port usages and only opens a port once and closes it when its usage is closed the last time. Also found that the dummy provider not yet handles the global mode (one test failed) and fixed that. https://code.launchpad.net/~themue/juju-core/go-firewaller-global-mode/+merge/128529 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -10 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/dummy/environs.go View 7 chunks +45 lines, -10 lines 5 comments Download
M worker/firewaller/firewaller.go View 5 chunks +31 lines, -0 lines 6 comments Download
M worker/firewaller/firewaller_test.go View 2 chunks +72 lines, -0 lines 0 comments Download

Messages

Total messages: 5
TheMue
Please take a look.
11 years, 6 months ago (2012-10-08 15:45:22 UTC) #1
rog
looks good. a few remarks below. https://codereview.appspot.com/6635043/diff/1/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/6635043/diff/1/environs/dummy/environs.go#newcode590 environs/dummy/environs.go:590: if inst.defaultFirewall() { ...
11 years, 6 months ago (2012-10-08 16:10:36 UTC) #2
niemeyer
As we talked online, the fix in dummy should be split out from this CL. ...
11 years, 6 months ago (2012-10-08 16:33:11 UTC) #3
niemeyer
https://codereview.appspot.com/6635043/diff/1/environs/dummy/environs.go File environs/dummy/environs.go (right): https://codereview.appspot.com/6635043/diff/1/environs/dummy/environs.go#newcode590 environs/dummy/environs.go:590: if inst.defaultFirewall() { On 2012/10/08 16:10:36, rog wrote: > ...
11 years, 6 months ago (2012-10-08 16:44:24 UTC) #4
niemeyer
11 years, 6 months ago (2012-10-08 17:39:01 UTC) #5
We can't check for "default" within the firewaller, since the default for
different environments may be different (which is the reason why we name it
"default" rather than the actual behavior). Also, we have to consider how to
handle firewall restarts. The way it currently works, depending on a full-blown
initialization of all the firewall ports, isn't going to scale (100k open/close
ports on every restart.. sounds bad).
Sign in to reply to this message.

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