Do not fail the takeip event if the "ip addr add ..." command failed. ipv6-test obnox/ipv6-test origin/ipv6-test
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 21 Aug 2008 23:25:47 +0000 (09:25 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 21 Aug 2008 23:25:47 +0000 (09:25 +1000)
Let the event complete successfully.   the local recovery daemon will check that we have the address and reissue takip othervise.

There are several reasons why "ip addr add "  can fail, one is a misconfiguration
anothe ris that for ipv6 the stack is a lot more picky than for ipv4.     for examplke this WILL fail in ipv6 if there is a duplicate ip address on the network.

thus  this check could cause rolling-recoveries  which is why it has to go

config/events.d/10.interface

index 15e55618d1538a906c1423a3537cd427ffd518bf..4d070777269bb86b5f73b29ad252c66c92c23f99 100755 (executable)
@@ -59,7 +59,6 @@ case $cmd in
        }
        /sbin/ip addr add $ip/$maskbits dev $iface || {
                 echo "Failed to add $ip/$maskbits on dev $iface"
-                exit 1
        }
        # cope with the script being killed while we have the interface blocked
        iptables -D INPUT -i $iface -d $ip -j DROP 2> /dev/null