ctdb/daemon: Make delete IP wait until the IP is released
authorMartin Schwenke <martin@meltin.net>
Wed, 22 Jan 2014 02:30:47 +0000 (13:30 +1100)
committerAmitay Isaacs <amitay@samba.org>
Sun, 23 Mar 2014 03:20:15 +0000 (04:20 +0100)
commit9b907536fb657fa15c02858caf0ffff633ecd478
tree048e4c0ce16336a97083a98f717dfb5a24c4ee6f
parentbafb9151ccb5722df36f9ba168716f4f4fa01cdc
ctdb/daemon: Make delete IP wait until the IP is released

reloadips really expects deleted IPs to be released before completing.
Otherwise the recovery daemon starts failing the local IP check.  The
races that follow can cause a node to be banned.

To make the error handling simple, do the actual deletion in
release_ip_callback().

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/include/ctdb_private.h
ctdb/server/ctdb_control.c
ctdb/server/ctdb_takeover.c