When running with local daemons, provided there is more than 2 of
authorMartin Schwenke <martin@meltin.net>
Sun, 7 Dec 2008 21:15:18 +0000 (08:15 +1100)
committerMartin Schwenke <martin@meltin.net>
Sun, 7 Dec 2008 21:15:18 +0000 (08:15 +1100)
commitc9ca8ccc2312757f8c8a59c79997976796120417
tree427ade75a587b1f956488c51e5dcecf1b01d9373
parent805c5bf1f33d250fa1f9f6fac0e46ff9358c8dee
When running with local daemons, provided there is more than 2 of
them, randomly pick a single node that will not have any public IPs
assigned.  This will make life a bit more interesting and will
simulate what happens on real clusters with a management node.  Some
tests were disabling a node to implicitly trigger a ctdb restart - now
use an explicit restart of ctdb when it is required.
17_ctdb_config_delete_ip.sh now randomly chooses a public IP on any
node to disable - this works around a problem where the hardcoded node
might not have any public addresses.

Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 3d59783c0e9478f4766c380945d6200fc654f5d9)
ctdb/tests/scripts/ctdb_test_functions.bash
ctdb/tests/simple/16_ctdb_config_add_ip.sh
ctdb/tests/simple/17_ctdb_config_delete_ip.sh
ctdb/tests/simple/20_ctdb_getmonmode.sh