mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
76d75f8c81
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f94897ef9504c144937409688fa7a646e0b0ceae)
182 lines
9.1 KiB
Bash
Executable File
182 lines
9.1 KiB
Bash
Executable File
#!/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
|