ADDIP failure
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 13 Jan 2011 05:17:43 +0000 (16:17 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 13 Jan 2011 05:17:43 +0000 (16:17 +1100)
commit775bd75d4cbc5ee3bf6007ea71aa70af9581ee07
tree2f80cb7ca8919031b009224b622b9f2698efb1ca
parente1ca391136eab60b586eaa263bed33219285c0bd
ADDIP failure

Found during automatic regression testing.
We do not allow the takeip/releaseip events to be executed during a recovery.

All of "ctdb addip, ctdb delip, ctdb moveip" use and force these events to
trigger to perform the ip assignments required.

If these commands collide with a recovery, these commands could fail since we do
not allow takeip/releaseip events to trigger during the recovery.
While it is easy to just try running hte command again, this is suboptimal for script use.

Change these commands to retry these operations a few times until either successfull or until we give up.
This makes the commands much easier to use in scripts.
tools/ctdb.c