backupkey: replace heimdal rsa key generation with GnuTLS
[Samba.git] / ctdb / tests / takeover / lcp2.010.sh
blob20b1c98e65e6fa35072f0ffaf7b60e7aa1e27b29
1 #!/bin/sh
3 . "${TEST_SCRIPTS_DIR}/unit.sh"
5 define_test "2 disjoint groups of nodes/addresses, a node becomes healthy"
7 # This illustrates a bug in LCP2 when the the only candidate for a
8 # source node is chosen to be the "most imbalanced" node. This means
9 # that nodes in the smaller group aren't necessarily (depends on sort
10 # order and addresses used) considered as candidates. If the larger
11 # group has 6 addresses then the "necessarily" goes away and the
12 # smaller group won't be rebalanced.
14 export CTDB_TEST_LOGLEVEL=0
16 required_result <<EOF
17 192.168.209.102 3
18 192.168.209.101 2
19 192.168.140.4 1
20 192.168.140.3 1
21 192.168.140.2 0
22 192.168.140.1 0
23 EOF
25 simple_test 0,0,0,0 <<EOF
26 192.168.140.1 0 0,1
27 192.168.140.2 0 0,1
28 192.168.140.3 1 0,1
29 192.168.140.4 1 0,1
30 192.168.209.101 2 2,3
31 192.168.209.102 2 2,3
32 EOF