From 52c4d33d01646bfd02442150860615173c287336 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 7 Feb 2017 15:30:08 +1100 Subject: ctdb-takeover: Don't release IPs from nodes where they are not known This avoids confusing log messages like: ctdbd[21635]: releaseip called for an ip '10.1.1.1' that is not a public address Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Fri Feb 24 11:50:36 CET 2017 on sn-devel-144 --- ctdb/server/ctdb_takeover_helper.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ctdb/server') diff --git a/ctdb/server/ctdb_takeover_helper.c b/ctdb/server/ctdb_takeover_helper.c index af8656900e7..5efd6198394 100644 --- a/ctdb/server/ctdb_takeover_helper.c +++ b/ctdb/server/ctdb_takeover_helper.c @@ -301,6 +301,12 @@ static struct tevent_req *release_ip_send(TALLOC_CTX *mem_ctx, for (i = 0; i < count; i++) { uint32_t pnn = pnns[i]; + + /* Skip this node if IP is not known */ + if (! bitmap_query(tmp_ip->known_on, pnn)) { + continue; + } + /* If pnn is not the node that should be * hosting the IP then add it to the list of * nodes that need to do a release. */ -- cgit v1.2.1