ctdb-daemon: Trust vnn->interface for an IP when releasing it
commit108b1be0ee62af7ecb3c775f45c540dd07a527bf
authorMartin Schwenke <martin@meltin.net>
Fri, 21 Nov 2014 03:52:47 +0000 (21 14:52 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 5 Dec 2014 20:02:40 +0000 (5 21:02 +0100)
treecc4880d90380bec30658018af8c7c03634cab7c4
parent6471541d6d2bc9f2af0ff92b280abbd1d933cf88
ctdb-daemon: Trust vnn->interface for an IP when releasing it

ctdb_sys_find_ifname() doesn't work for IPv6 addresses so don't use
it.

Trust the eventscript to do sanity checking on the interface.  Current
warnings are replaced with equivalents generated by the eventscript.
The unlikely message:

  Public IP %s is hosted on interface %s but we have no VNN

will be replaced by:

  WARNING: Public IP %s hosted on interface %s but VNN says __none__

which is clear enough.

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