ctdb-scripts: Wait until IPv6 addresses are not "tentative"
commitd0b2375c3d754da3cd68e34617ab3edd36e9317b
authorMartin Schwenke <martin@meltin.net>
Fri, 21 Nov 2014 06:33:21 +0000 (21 17:33 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 5 Dec 2014 20:02:40 +0000 (5 21:02 +0100)
tree7d5643a23075eed2cd6a6ec99876a4437fd0ffec
parentd4212bd6a533b4b54b56e376a9246f2396cba253
ctdb-scripts: Wait until IPv6 addresses are not "tentative"

There are a few potential failure modes when adding an IPv6 address.
It takes a little while of duplicate address detection to complete, so
wait for a while.  After a timeout, also need to check to see if
duplicate address detection failed - if it did then actually drop the
IP address.

This really needs some careful thinking.  If CTDB disappears on a node
but the node's IP addresses are still on interfaces then the above
failure mode could cause the takeover nodes to become banned.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/config/functions