summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/takeover/lcp2.005.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ctdb/tests/takeover/lcp2.005.sh')
-rwxr-xr-xctdb/tests/takeover/lcp2.005.sh181
1 files changed, 181 insertions, 0 deletions
diff --git a/ctdb/tests/takeover/lcp2.005.sh b/ctdb/tests/takeover/lcp2.005.sh
new file mode 100755
index 0000000000..4a8c0ea982
--- /dev/null
+++ b/ctdb/tests/takeover/lcp2.005.sh
@@ -0,0 +1,181 @@
+#!/bin/sh
+
+. "${TEST_SCRIPTS_DIR}/unit.sh"
+
+define_test "3 nodes, 1 -> all healthy, debug logging"
+
+export CTDB_TEST_LOGLEVEL=4
+
+required_result <<EOF
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES (UNASSIGNED)
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 1 [539166]
+DATE TIME [PID]: 1 [-116718] -> 192.168.21.254 -> 0 [+0]
+DATE TIME [PID]: 1 [-116718] -> 192.168.21.254 -> 2 [+0]
+DATE TIME [PID]: 1 [-116971] -> 192.168.21.253 -> 0 [+0]
+DATE TIME [PID]: 1 [-116971] -> 192.168.21.253 -> 2 [+0]
+DATE TIME [PID]: 1 [-116971] -> 192.168.21.252 -> 0 [+0]
+DATE TIME [PID]: 1 [-116971] -> 192.168.21.252 -> 2 [+0]
+DATE TIME [PID]: 1 [-121110] -> 192.168.20.254 -> 0 [+0]
+DATE TIME [PID]: 1 [-121110] -> 192.168.20.254 -> 2 [+0]
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.253 -> 0 [+0]
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.253 -> 2 [+0]
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.252 -> 0 [+0]
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.252 -> 2 [+0]
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.251 -> 0 [+0]
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.251 -> 2 [+0]
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.250 -> 0 [+0]
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.250 -> 2 [+0]
+DATE TIME [PID]: 1 [-121110] -> 192.168.20.249 -> 0 [+0]
+DATE TIME [PID]: 1 [-121110] -> 192.168.20.249 -> 2 [+0]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: 1 [-121363] -> 192.168.20.253 -> 0 [+0]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES (UNASSIGNED)
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 1 [418056]
+DATE TIME [PID]: 1 [-102557] -> 192.168.21.254 -> 0 [+14161]
+DATE TIME [PID]: 1 [-102557] -> 192.168.21.254 -> 2 [+0]
+DATE TIME [PID]: 1 [-102810] -> 192.168.21.253 -> 0 [+14161]
+DATE TIME [PID]: 1 [-102810] -> 192.168.21.253 -> 2 [+0]
+DATE TIME [PID]: 1 [-102810] -> 192.168.21.252 -> 0 [+14161]
+DATE TIME [PID]: 1 [-102810] -> 192.168.21.252 -> 2 [+0]
+DATE TIME [PID]: 1 [-105234] -> 192.168.20.254 -> 0 [+15876]
+DATE TIME [PID]: 1 [-105234] -> 192.168.20.254 -> 2 [+0]
+DATE TIME [PID]: 1 [-105234] -> 192.168.20.252 -> 0 [+16129]
+DATE TIME [PID]: 1 [-105234] -> 192.168.20.252 -> 2 [+0]
+DATE TIME [PID]: 1 [-105738] -> 192.168.20.251 -> 0 [+15625]
+DATE TIME [PID]: 1 [-105738] -> 192.168.20.251 -> 2 [+0]
+DATE TIME [PID]: 1 [-105738] -> 192.168.20.250 -> 0 [+15625]
+DATE TIME [PID]: 1 [-105738] -> 192.168.20.250 -> 2 [+0]
+DATE TIME [PID]: 1 [-105485] -> 192.168.20.249 -> 0 [+15625]
+DATE TIME [PID]: 1 [-105485] -> 192.168.20.249 -> 2 [+0]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: 1 [-105738] -> 192.168.20.251 -> 2 [+0]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES (UNASSIGNED)
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 1 [312571]
+DATE TIME [PID]: 1 [-88396] -> 192.168.21.254 -> 0 [+14161]
+DATE TIME [PID]: 1 [-88396] -> 192.168.21.254 -> 2 [+14161]
+DATE TIME [PID]: 1 [-88649] -> 192.168.21.253 -> 0 [+14161]
+DATE TIME [PID]: 1 [-88649] -> 192.168.21.253 -> 2 [+14161]
+DATE TIME [PID]: 1 [-88649] -> 192.168.21.252 -> 0 [+14161]
+DATE TIME [PID]: 1 [-88649] -> 192.168.21.252 -> 2 [+14161]
+DATE TIME [PID]: 1 [-89609] -> 192.168.20.254 -> 0 [+15876]
+DATE TIME [PID]: 1 [-89609] -> 192.168.20.254 -> 2 [+15625]
+DATE TIME [PID]: 1 [-89609] -> 192.168.20.252 -> 0 [+16129]
+DATE TIME [PID]: 1 [-89609] -> 192.168.20.252 -> 2 [+15625]
+DATE TIME [PID]: 1 [-89609] -> 192.168.20.250 -> 0 [+15625]
+DATE TIME [PID]: 1 [-89609] -> 192.168.20.250 -> 2 [+16129]
+DATE TIME [PID]: 1 [-89609] -> 192.168.20.249 -> 0 [+15625]
+DATE TIME [PID]: 1 [-89609] -> 192.168.20.249 -> 2 [+15876]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: 1 [-88649] -> 192.168.21.253 -> 0 [+14161]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES (UNASSIGNED)
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 1 [222962]
+DATE TIME [PID]: 1 [-72520] -> 192.168.21.254 -> 0 [+30037]
+DATE TIME [PID]: 1 [-72520] -> 192.168.21.254 -> 2 [+14161]
+DATE TIME [PID]: 1 [-72520] -> 192.168.21.252 -> 0 [+30290]
+DATE TIME [PID]: 1 [-72520] -> 192.168.21.252 -> 2 [+14161]
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.254 -> 0 [+30037]
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.254 -> 2 [+15625]
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.252 -> 0 [+30290]
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.252 -> 2 [+15625]
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.250 -> 0 [+29786]
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.250 -> 2 [+16129]
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.249 -> 0 [+29786]
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.249 -> 2 [+15876]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: 1 [-75448] -> 192.168.20.254 -> 2 [+15625]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES (UNASSIGNED)
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 1 [147514]
+DATE TIME [PID]: 1 [-58359] -> 192.168.21.254 -> 0 [+30037]
+DATE TIME [PID]: 1 [-58359] -> 192.168.21.254 -> 2 [+28322]
+DATE TIME [PID]: 1 [-58359] -> 192.168.21.252 -> 0 [+30290]
+DATE TIME [PID]: 1 [-58359] -> 192.168.21.252 -> 2 [+28322]
+DATE TIME [PID]: 1 [-59572] -> 192.168.20.252 -> 0 [+30290]
+DATE TIME [PID]: 1 [-59572] -> 192.168.20.252 -> 2 [+31501]
+DATE TIME [PID]: 1 [-59823] -> 192.168.20.250 -> 0 [+29786]
+DATE TIME [PID]: 1 [-59823] -> 192.168.20.250 -> 2 [+31754]
+DATE TIME [PID]: 1 [-59823] -> 192.168.20.249 -> 0 [+29786]
+DATE TIME [PID]: 1 [-59823] -> 192.168.20.249 -> 2 [+31501]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: 1 [-59823] -> 192.168.20.250 -> 0 [+29786]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES (UNASSIGNED)
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 1 [87691]
+DATE TIME [PID]: 1 [-44198] -> 192.168.21.254 -> 0 [+44198]
+DATE TIME [PID]: 1 [-44198] -> 192.168.21.254 -> 2 [+28322]
+DATE TIME [PID]: 1 [-44198] -> 192.168.21.252 -> 0 [+44451]
+DATE TIME [PID]: 1 [-44198] -> 192.168.21.252 -> 2 [+28322]
+DATE TIME [PID]: 1 [-43947] -> 192.168.20.252 -> 0 [+45915]
+DATE TIME [PID]: 1 [-43947] -> 192.168.20.252 -> 2 [+31501]
+DATE TIME [PID]: 1 [-43947] -> 192.168.20.249 -> 0 [+45662]
+DATE TIME [PID]: 1 [-43947] -> 192.168.20.249 -> 2 [+31501]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: 1 [-44198] -> 192.168.21.254 -> 2 [+28322]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES (UNASSIGNED)
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 0 [43947]
+DATE TIME [PID]: 0 [-28322] -> 192.168.21.253 -> 0 [+28322]
+DATE TIME [PID]: 0 [-28322] -> 192.168.21.253 -> 2 [+44198]
+DATE TIME [PID]: 0 [-29786] -> 192.168.20.253 -> 0 [+29786]
+DATE TIME [PID]: 0 [-29786] -> 192.168.20.253 -> 2 [+45662]
+DATE TIME [PID]: 0 [-29786] -> 192.168.20.250 -> 0 [+29786]
+DATE TIME [PID]: 0 [-29786] -> 192.168.20.250 -> 2 [+45915]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 2 [43947]
+DATE TIME [PID]: 2 [-28322] -> 192.168.21.254 -> 0 [+44198]
+DATE TIME [PID]: 2 [-28322] -> 192.168.21.254 -> 2 [+28322]
+DATE TIME [PID]: 2 [-29786] -> 192.168.20.254 -> 0 [+45662]
+DATE TIME [PID]: 2 [-29786] -> 192.168.20.254 -> 2 [+29786]
+DATE TIME [PID]: 2 [-29786] -> 192.168.20.251 -> 0 [+45915]
+DATE TIME [PID]: 2 [-29786] -> 192.168.20.251 -> 2 [+29786]
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: ----------------------------------------
+DATE TIME [PID]: CONSIDERING MOVES FROM 1 [43744]
+DATE TIME [PID]: 1 [-28322] -> 192.168.21.252 -> 0 [+44451]
+DATE TIME [PID]: 1 [-28322] -> 192.168.21.252 -> 2 [+44198]
+DATE TIME [PID]: 1 [-29786] -> 192.168.20.252 -> 0 [+45915]
+DATE TIME [PID]: 1 [-29786] -> 192.168.20.252 -> 2 [+45662]
+DATE TIME [PID]: 1 [-29786] -> 192.168.20.249 -> 0 [+45662]
+DATE TIME [PID]: 1 [-29786] -> 192.168.20.249 -> 2 [+45662]
+DATE TIME [PID]: ----------------------------------------
+192.168.21.254 2
+192.168.21.253 0
+192.168.21.252 1
+192.168.20.254 2
+192.168.20.253 0
+192.168.20.252 1
+192.168.20.251 2
+192.168.20.250 0
+192.168.20.249 1
+EOF
+
+simple_test 0,0,0 <<EOF
+192.168.20.249 1
+192.168.20.250 1
+192.168.20.251 1
+192.168.20.252 1
+192.168.20.253 1
+192.168.20.254 1
+192.168.21.252 1
+192.168.21.253 1
+192.168.21.254 1
+EOF