Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 6355074: Reuses machine security groups for EC2 provider

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by jimbaker
Modified:
13 years, 6 months ago
Reviewers:
hazmat, mp+113654
Visibility:
Public.
Reuses machine security groups for EC2 provider In trunk, this is the current behavior when terminating a machine: 1. Wait for the machine to transition to the terminated state, as reported by EC2; this can take considerable time. 2. At that time, attempt to delete the security group for that machine; security groups cannot be deleted unless all referring machines are in a terminated state. In practice, this strategy causes significant waiting for users and will often fail for larger environments. Instead, this branch changes the behavior such that it instead reuses any security groups from a previous instantiation of that environment, creating them only as necessary. The firewall portion of the provisioning agent will automatically adjust firewall rules for the corresponding machine security group as necessary, whether reused or not. https://code.launchpad.net/~jimbaker/juju/reuse-security-groups/+merge/113654 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : Reuses machine security groups for EC2 provider #

Patch Set 3 : Reuses machine security groups for EC2 provider #

Created: 13 years, 6 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -348 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M juju/providers/ec2/__init__.py View 4 chunks +16 lines, -22 lines 0 comments Download
M juju/providers/ec2/launch.py View 2 chunks +6 lines, -24 lines 0 comments Download
M juju/providers/ec2/securitygroup.py View 2 chunks +0 lines, -43 lines 0 comments Download
M juju/providers/ec2/tests/common.py View 1 chunk +0 lines, -12 lines 0 comments Download
M juju/providers/ec2/tests/test_launch.py View 3 chunks +8 lines, -14 lines 0 comments Download
M juju/providers/ec2/tests/test_provider.py View 2 chunks +2 lines, -2 lines 0 comments Download
M juju/providers/ec2/tests/test_securitygroup.py View 3 chunks +3 lines, -174 lines 0 comments Download
M juju/providers/ec2/tests/test_shutdown.py View 1 2 7 chunks +8 lines, -53 lines 0 comments Download
M juju/providers/ec2/tests/test_utils.py View 1 chunk +4 lines, -2 lines 0 comments Download
M juju/providers/ec2/utils.py View 2 chunks +4 lines, -2 lines 0 comments Download
M juju/state/tests/test_firewall.py View 1 1 chunk +36 lines, -0 lines 0 comments Download
Total messages: 5
|
jimbaker
Please take a look.
13 years, 6 months ago (2012年07月05日 22:16:25 UTC) #1
Please take a look.
Sign in to reply to this message.
hazmat
thanks for taking a look at this and cleaning up the various pep8 items. It ...
13 years, 6 months ago (2012年07月06日 01:47:31 UTC) #2
thanks for taking a look at this and cleaning up the various pep8 items. It
looks good, one item that causes me a minor concern, although perhaps
unjustified.
This doesn't end up closing ports on a pre-existing security group immediately,
looking over the provider/firewall it looks like it will eventually get to
processing it on a periodic check. Presumably that leaves a small window, while
the machine is effectively still booting/provisioning (and with nothing
running).
Still it would be nice to have an explicit test of this case for the firewall
(some of the existing tests look close), and to explicitly document this
behavior for pre-existing groups next to group creation code.
https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/launch.py
File juju/providers/ec2/launch.py (right):
https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/launch.py#ne...
juju/providers/ec2/launch.py:102: self._provider.environment_name, machine_id))
needs the other side of finding an pre-existing group. ie.
else:
 empty out all rules in the group.
https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/tests/test_s...
File juju/providers/ec2/tests/test_shutdown.py (right):
https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/tests/test_s...
juju/providers/ec2/tests/test_shutdown.py:193: #
self.mocker.result(succeed(True))
transient extraneous
Sign in to reply to this message.
jimbaker
Please take a look.
13 years, 6 months ago (2012年07月09日 22:51:29 UTC) #3
Please take a look.
Sign in to reply to this message.
jimbaker
Please take a look. https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/launch.py File juju/providers/ec2/launch.py (right): https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/launch.py#newcode102 juju/providers/ec2/launch.py:102: self._provider.environment_name, machine_id)) This emptying out ...
13 years, 6 months ago (2012年07月09日 22:59:59 UTC) #4
Please take a look.
https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/launch.py
File juju/providers/ec2/launch.py (right):
https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/launch.py#ne...
juju/providers/ec2/launch.py:102: self._provider.environment_name, machine_id))
This emptying out is done by the FirewallManager. This reuse scenario is now
explicitly tested.
https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/tests/test_s...
File juju/providers/ec2/tests/test_shutdown.py (right):
https://codereview.appspot.com/6355074/diff/1/juju/providers/ec2/tests/test_s...
juju/providers/ec2/tests/test_shutdown.py:193: #
self.mocker.result(succeed(True))
On 2012年07月06日 01:47:31, hazmat wrote:
> transient extraneous
Done.
Sign in to reply to this message.
jimbaker
I added a test (in test_firewall) to address the removal of security group rules for ...
13 years, 6 months ago (2012年07月09日 23:00:50 UTC) #5
I added a test (in test_firewall) to address the removal of security group rules
for reused security groups.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /