IP reallocation. If a public address is already hosted on the node when we startup...
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sun, 13 Mar 2011 22:55:28 +0000 (09:55 +1100)
committerMichael Adam <obnox@samba.org>
Fri, 6 Jun 2014 13:00:38 +0000 (15:00 +0200)
CQ S1022356

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 89f8169c24da96c1fdd0ac19b8a1e0e1df01a72a)

server/ctdb_takeover.c

index 55913655c32f1efdb99698b575bd1d0cdf82fc5b..b51e8f0b79204fbaa5195a1dad00f633706cef6e 100644 (file)
@@ -605,7 +605,7 @@ int32_t ctdb_control_takeover_ip(struct ctdb_context *ctdb,
                DEBUG(DEBUG_CRIT,(__location__ " takeoverip of IP %s is known to the kernel, "
                                  "but we have no interface assigned, has someone manually configured it? Ignore for now.\n",
                                 ctdb_addr_to_str(&vnn->public_address)));
-               return -1;
+               return 0;
        }
 
        if (vnn->pnn != ctdb->pnn && have_ip) {