/!\ Work in progress!

Summary

Add a security groups implementation based on iptables (rather than libvirt's nwfilter).

Release Note

We added a new backend for security groups that uses iptables directly instead of relying on libvirt's nwfilter. Among other things, this means that it now actually works.

Rationale

NWFilter doesn't really work at the moment (due to kernel limitations), and the known workarounds cannot be applied to NWFilter, so we have to look elsewhere for a proper solution adding security groups.

Design

We add a couple of extra rpc methods:

In the EC2 API, the following API calls are affected:

We could potentially have offloaded some of this logic to rabbit by having a topic per security group and just broadcast "refresh_members" and "refresh_rules" on those, but given that we'll potentially have a million of these security groups, that doesn't seem very pleasant.

Implementation

This section should describe a plan of action (the "how") to implement the changes discussed. Could include subsections like:

UI Changes

Should cover changes required to the UI, or specific UI that is required to implement this

Code Changes

Code changes should include an overview of what needs to change, and in some cases even the specific details.

Migration

Include:

Test/Demo Plan

This need not be added or completed until the specification is nearing beta.

Unresolved issues

This should highlight any issues that should be addressed in further specifications, and not problems with the specification itself; since any specification with problems cannot be approved.

BoF agenda and discussion

Use this section to take notes during the BoF; if you keep it in the approved spec, use it for summarising what was discussed and note any options that were rejected.


CategorySpec

Wiki: Nova/IptablesSecurityGroupsSpec (last edited 2010-12-13 15:22:16 by SorenHansen)