Any time a node changes flags in any significant way there will be a
takeover run, which will generate an "ipreallocated" event. The
"recovered" event always happens straight after a takeover run so we
update the NAT gateway twice.
Signed-off-by: Martin Schwenke <martin@meltin.net>
natgwip="$2"
if [ "$natgwmaster" = "-1" ]; then
- echo "There is no NATGW master node"
- # The recovered event should never fail - we'll catch this
- # failure in the monitor event.
- if [ "$_event" = "recovered" ] ; then
- exit 0
- else
- exit 1
- fi
+ # Fail...
+ die "There is no NATGW master node"
fi
}
echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce
;;
- recovered|updatenatgw|ipreallocated)
+ updatenatgw|ipreallocated)
mypnn=$(ctdb pnn | cut -d: -f2)
set_natgw_capability