ctdb-daemon: Stop inactive/disabled nodes from reporting available IPs
authorMartin Schwenke <martin@meltin.net>
Mon, 18 Jun 2018 06:22:14 +0000 (16:22 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 11 Jul 2018 09:48:38 +0000 (11:48 +0200)
commit709ef6b7cc63ad272b959404d755af82c56d4ea0
treec8940d67450e95a8beac02286d7408f0c9ab5702
parentfda059108356bb97168f2cc61d94a18098cab0c4
ctdb-daemon: Stop inactive/disabled nodes from reporting available IPs

This can be done now that NoIPHostOnAllDisabled is gone and will allow
the public IP address failover logic to be simplified.

In the test code, still filter available IP addresses by node state.
This code can't currently read information about available IP
addresses but that will change in future

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