From b32b22f32752708b8e9b509f65f04b7bffc5b229 Mon Sep 17 00:00:00 2001 From: James Slagle Date: Mon, 30 Mar 2015 07:51:14 -0400 Subject: [PATCH] Allow iptables rule delete to fail After this rule is deleted the first time, it won't exist any longer, so we need to allow the command to fail by adding a '|| true'. Change-Id: I76c81b2456509dc7ef12e734caf2bfc43630296f --- .../os-apply-config/var/opt/undercloud-stack/masquerade | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/elements/undercloud-stack-config/os-apply-config/var/opt/undercloud-stack/masquerade b/elements/undercloud-stack-config/os-apply-config/var/opt/undercloud-stack/masquerade index 2dc103a0c..fb7300cc7 100644 --- a/elements/undercloud-stack-config/os-apply-config/var/opt/undercloud-stack/masquerade +++ b/elements/undercloud-stack-config/os-apply-config/var/opt/undercloud-stack/masquerade @@ -21,5 +21,4 @@ iptables -t nat -X BOOTSTACK_MASQ || true # Rename the new chain into permanence. iptables -t nat -E BOOTSTACK_MASQ_NEW BOOTSTACK_MASQ # remove forwarding rule (fixes bug 1183099) -iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited - +iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited || true