nova-network fails to ensure iptable rules if none exists
Bug #1107214 reported by
Francois Eleouet
This bug report is a duplicate of:
Bug #1103436: iptables-restore error when table not loaded.
Edit
Remove
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
This bug was introduced by commit f0539d49271df76
If some iptables tables doesn't contains any rule, IptablesManager fails to apply rules in linux_net.py.
When no rules are present in a table, it is omitted in iptable-save output. "_find_table" will consequently fail, resulting in error while attempting to push inconsistent rules with iptables-restore.
To post a comment you must log in.
Actually, previous description was inacurate: iptables-save won't output information about a specific table if the corresponding kernel module isn't loaded.
Running any iptable operation on a table will load the corresponding module and make it appear in iptable-save output.
Flushing a table and removing the correspoding kernel module will remove it from iptable-save output, so that IptablesManager will fail to apend a rule in the corresponding table.