Non-wrapped iptables chains are not removed correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Brian Haley |
Bug Description
I have written an out-of-tree module that makes calls into the IPtablesManager code to add/remove iptables chains and rules. In order to keep the chains "off the radar" for nova-compute (since it removes everything beginning with 'nova-compute'), and to keep the names pretty short (max 28 chars I think), I made them non-wrapped chains.
When I ran the code the first thing I noticed was that the chains never got removed when the iptables apply() code was called after I had done a remove_rule() call.
The best solution I found was to add an array of chains and rules to remove in each table, and iterate them at apply() time to guarantee they're gone.
I have a proposed patch I'll link to this in a bit.
Changed in nova: | |
assignee: | nobody → Brian Haley (brian-haley) |
Changed in nova: | |
milestone: | none → folsom-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-3 → 2012.2 |
https:/ /review. openstack. org/#/c/ 11300/