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:18:53 +0000 (16:18 +1100)
commit7d4c51a1bd572c97162a44867af4eb37376a0624
tree5aa8d432b86ff1e879fa23a07bc2f879905d3f71
parentd5a2f364ef0273c8a2c29d0205df13ff3afd1495
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