instack-undercloud/elements/undercloud-install
Harald Jensås 89f960cde2 Fix duplicate entries in /etc/sysconfig/iptables
Commit e49688be98
introduced filters for ephemeral firewall rules
managed by Ironic Inspectors iptables PXE filter.
These new filters cause duplicate entries in the
persisted firewall rules.

sed expression '/-m comment --comment/p' was used
to ensure the ironic-inspector api port is not
accidentally removed. But the expression also
matches several other entries causing duplicates
to be written.

This change enhances the expression to check for
'-m comment --comment' and 'ironic-inspector'.

Related-Bug: #1771128
Change-Id: I6ac397e786f66e33c523edb94613181040c15f19
(cherry picked from commit 4366fa8b14)
2018-05-30 15:07:08 +00:00
..
os-apply-config Add per subnet masquerading 2018-02-06 09:35:07 +01:00
os-refresh-config Fix duplicate entries in /etc/sysconfig/iptables 2018-05-30 15:07:08 +00:00
element-provides Clean up json file 2015-03-17 16:15:55 -04:00