1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/include
Martin Schwenke 0445c988e2 recoverd: Fix tunable NoIPTakeoverOnDisabled, rename to NoIPHostOnAllDisabled
This really needs to be per-node.  The rename is because nodes with
this tunable switched on should drop IPs if they become unhealthy (or
disabled in some other way).

* Add new flag NODE_FLAGS_NOIPHOST, only used in recovery daemon.

* Enhance set_ipflags_internal() and set_ipflags() to setup
  NODE_FLAGS_NOIPHOST depending on setting of NoIPHostOnAllDisabled
  and/or whether nodes are disabled/inactive.

* Replace can_node_servce_ip() with functions can_node_host_ip() and
  can_node_takeover_ip().  These functions are the only ones that need
  to look at NODE_FLAGS_NOIPTAKEOVER and NODE_FLAGS_NOIPHOST.  They
  can make the decision without looking at any other flags due to
  previous setup.

* Remove explicit flag checking in IP allocation functions (including
  unassign_unsuitable_ips()) and just call can_node_host_ip() and
  can_node_takeover_ip() as appropriate.

* Update test code to handle CTDB_SET_NoIPHostOnAllDisabled.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Pair-programmed-with: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 1308a51f73f2e29ba4dbebb6111d9309a89732cc)
2013-05-07 16:20:46 +10:00
..
cmdline.h moved cmdline.c to common code 2007-04-17 22:16:50 +10:00
ctdb_client.h include: Move ctdb_start_daemon() from ctdb_client.h to ctdb_private.h 2013-04-18 13:22:12 +10:00
ctdb_private.h recoverd: Fix tunable NoIPTakeoverOnDisabled, rename to NoIPHostOnAllDisabled 2013-05-07 16:20:46 +10:00
ctdb_protocol.h recoverd: Fix tunable NoIPTakeoverOnDisabled, rename to NoIPHostOnAllDisabled 2013-05-07 16:20:46 +10:00
ctdb_typesafe_cb.h rename ccan/typesafe_cb.h to ctdb_typesafe_cb.h and 2010-06-02 09:18:48 +10:00
ctdb.h libctdb: add ctdb_getcapabilities() 2012-09-28 17:05:34 +10:00
idtree.h - added in idtree for efficient reqid handling 2006-11-28 20:48:34 +11:00
includes.h util: Add hex_decode_talloc() to decode hex string into a binary blob 2013-03-25 17:45:23 +11:00