2016-04-12 04:31:41 +03:00
#!/bin/sh
. " ${ TEST_SCRIPTS_DIR } /unit.sh "
define_test "3 nodes, no LVS, current disconnected"
2016-04-28 11:43:56 +03:00
setup_nodes <<EOF
192.168.20.41
192.168.20.42
192.168.20.43
EOF
2016-04-12 04:31:41 +03:00
setup_lvs <<EOF
EOF
2017-10-25 13:43:56 +03:00
# Don't setup ctdbd - disconnected on current node
#setup_ctdbd <<EOF
#NODEMAP
#0 192.168.20.41 0x1 CURRENT RECMASTER
#1 192.168.20.42 0x0
#2 192.168.20.43 0x0
#EOF
2016-04-12 04:31:41 +03:00
#####
2016-07-26 06:55:41 +03:00
required_result 1 <<EOF
connect( ) failed, errno = 2
Failed to connect to CTDB daemon ( $ctdbd_socket )
Failed to detect PNN of the current node.
Is this node part of CTDB cluster?
2016-04-12 04:31:41 +03:00
EOF
2016-07-07 09:22:59 +03:00
simple_test list
2016-04-12 04:31:41 +03:00
#####
2016-07-26 06:55:41 +03:00
required_result 1 <<EOF
connect( ) failed, errno = 2
Failed to connect to CTDB daemon ( $ctdbd_socket )
Failed to detect PNN of the current node.
Is this node part of CTDB cluster?
2016-04-12 04:31:41 +03:00
EOF
2016-07-07 09:22:59 +03:00
simple_test master
2016-04-12 04:31:41 +03:00
#####
2016-07-26 06:55:41 +03:00
required_result 1 <<EOF
connect( ) failed, errno = 2
Failed to connect to CTDB daemon ( $ctdbd_socket )
Failed to detect PNN of the current node.
Is this node part of CTDB cluster?
2016-04-12 04:31:41 +03:00
EOF
2016-07-07 09:22:59 +03:00
simple_test list
2016-04-12 04:31:41 +03:00
#####
2016-07-26 06:55:41 +03:00
required_result 1 <<EOF
connect( ) failed, errno = 2
Failed to connect to CTDB daemon ( $ctdbd_socket )
Failed to detect PNN of the current node.
Is this node part of CTDB cluster?
2016-04-12 04:31:41 +03:00
EOF
2016-07-07 09:22:59 +03:00
simple_test status