s4:dsdb: allocate DSDB_CONTROL_DBCHECK_FIX_DUPLICATE_LINKS oid
[Samba.git] / ctdb / tests / tool / ctdb.lvs.008.sh
blob6cdd702c57cb206553df4235e0c742e4067bd296
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "3 nodes, no LVS, current disconnected"
7 setup_nodes <<EOF
8 192.168.20.41
9 192.168.20.42
10 192.168.20.43
11 EOF
13 setup_lvs <<EOF
14 EOF
16 # Don't setup ctdbd - disconnected on current node
17 #setup_ctdbd <<EOF
18 #NODEMAP
19 #0 192.168.20.41 0x1 CURRENT RECMASTER
20 #1 192.168.20.42 0x0
21 #2 192.168.20.43 0x0
22 #EOF
24 #####
26 required_result 1 <<EOF
27 connect() failed, errno=2
28 Failed to connect to CTDB daemon ($ctdbd_socket)
29 Failed to detect PNN of the current node.
30 Is this node part of CTDB cluster?
31 EOF
33 simple_test list
35 #####
37 required_result 1 <<EOF
38 connect() failed, errno=2
39 Failed to connect to CTDB daemon ($ctdbd_socket)
40 Failed to detect PNN of the current node.
41 Is this node part of CTDB cluster?
42 EOF
44 simple_test master
46 #####
48 required_result 1 <<EOF
49 connect() failed, errno=2
50 Failed to connect to CTDB daemon ($ctdbd_socket)
51 Failed to detect PNN of the current node.
52 Is this node part of CTDB cluster?
53 EOF
55 simple_test list
57 #####
59 required_result 1 <<EOF
60 connect() failed, errno=2
61 Failed to connect to CTDB daemon ($ctdbd_socket)
62 Failed to detect PNN of the current node.
63 Is this node part of CTDB cluster?
64 EOF
66 simple_test status