Firewall operations can fail due to another process holding the xtables lock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic Inspector |
Fix Released
|
High
|
Dmitry Tantsur |
Bug Description
Ironic inspector manipulates iptables rules to blacklist the MAC addresses of active ironic nodes. The iptables commands are executed without the -w option, which means that if another process is using iptables at the same time (holding the xtables lock, to be precise), then the commands will fail.
This failure could result in a number of problems but would most likely cause inspector's DHCP server to hand out IP addresses to active instances.
On one system when polling 'iptables -L' I can see the discovery chain appearing and disappearing every few 30 seconds to a minute.
The failure can occur in any of the iptables commands, but here is the inspector log from one failure.
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Aug 12 08:50:00 localhost ironic-
Changed in ironic-inspector: | |
status: | New → Triaged |
importance: | Undecided → High |
milestone: | none → 2.2.0 |
Changed in ironic-inspector: | |
assignee: | nobody → Dmitry Tantsur (divius) |
Changed in ironic-inspector: | |
status: | Fix Committed → Fix Released |
no longer affects: | ironic-inspector/kilo |
no longer affects: | ironic-inspector/liberty |
Seen on CentOS7.1 running Kilo / inspector 1.1.