root / htest / shelltests / htools-balancing.test @ 570274e4
History | View | Annotate | Download (2.1 kB)
1 | 53d4cdf1 | Iustin Pop | ### std tests |
---|---|---|---|
2 | 53d4cdf1 | Iustin Pop | |
3 | 53d4cdf1 | Iustin Pop | # test basic parsing |
4 | 189b51fa | Iustin Pop | ./htest/hinfo -v -v -p --print-instances $BACKEND_BAL_STD |
5 | 53d4cdf1 | Iustin Pop | >>>= 0 |
6 | 189b51fa | Iustin Pop | ./htest/hbal -v -v -v -p --print-instances $BACKEND_BAL_STD -G group-01 |
7 | 53d4cdf1 | Iustin Pop | >>> !/(Nothing to do, exiting|No solution found)/ |
8 | 53d4cdf1 | Iustin Pop | >>>2 !/(Nothing to do, exiting|No solution found)/ |
9 | 53d4cdf1 | Iustin Pop | >>>= 0 |
10 | 53d4cdf1 | Iustin Pop | |
11 | 53d4cdf1 | Iustin Pop | # test command output |
12 | 189b51fa | Iustin Pop | ./htest/hbal $BACKEND_BAL_STD -G group-01 -C -S $T/simu-rebal.standard |
13 | 53d4cdf1 | Iustin Pop | >>> /gnt-instance (failover|migrate|replace-disks)/ |
14 | 53d4cdf1 | Iustin Pop | >>>= 0 |
15 | 53d4cdf1 | Iustin Pop | |
16 | 53d4cdf1 | Iustin Pop | # test saving commands |
17 | 189b51fa | Iustin Pop | ./htest/hbal $BACKEND_BAL_STD -G group-01 -C$T/rebal-cmds.standard |
18 | 53d4cdf1 | Iustin Pop | >>>= 0 |
19 | 53d4cdf1 | Iustin Pop | # and now check the file (depends on previous test) |
20 | 53d4cdf1 | Iustin Pop | cat $T/rebal-cmds.standard |
21 | 53d4cdf1 | Iustin Pop | >>> /gnt-instance (failover|migrate|replace-disks)/ |
22 | 53d4cdf1 | Iustin Pop | >>>= 0 |
23 | 53d4cdf1 | Iustin Pop | |
24 | 53d4cdf1 | Iustin Pop | # state saved before rebalancing should be identical; depends on the |
25 | 53d4cdf1 | Iustin Pop | # previous test |
26 | 53d4cdf1 | Iustin Pop | diff -u $T/simu-rebal-merged.standard $T/simu-rebal.standard.original |
27 | 53d4cdf1 | Iustin Pop | >>> |
28 | 53d4cdf1 | Iustin Pop | >>>= 0 |
29 | 53d4cdf1 | Iustin Pop | |
30 | 53d4cdf1 | Iustin Pop | # no double rebalance; depends on previous test |
31 | 189b51fa | Iustin Pop | ./htest/hbal -t $T/simu-rebal.standard.balanced -G group-01 |
32 | 53d4cdf1 | Iustin Pop | >>> /(Nothing to do, exiting|No solution found)/ |
33 | 53d4cdf1 | Iustin Pop | >>>= 0 |
34 | 53d4cdf1 | Iustin Pop | |
35 | 165b385b | Agata Murawska | # hcheck sees no reason to rebalance after rebalancing was already done |
36 | 189b51fa | Iustin Pop | ./htest/hcheck -t$T/simu-rebal.standard.balanced --machine-readable |
37 | 47ed1d79 | Agata Murawska | >>> /HCHECK_INIT_CLUSTER_NEED_REBALANCE=0/ |
38 | 165b385b | Agata Murawska | >>>= 0 |
39 | 165b385b | Agata Murawska | |
40 | 53d4cdf1 | Iustin Pop | ### now tiered tests |
41 | 53d4cdf1 | Iustin Pop | |
42 | 53d4cdf1 | Iustin Pop | # test basic parsing |
43 | 189b51fa | Iustin Pop | ./htest/hinfo -v -v -p --print-instances $BACKEND_BAL_TIER |
44 | 53d4cdf1 | Iustin Pop | >>>= 0 |
45 | 189b51fa | Iustin Pop | ./htest/hbal -v -v -v -p --print-instances $BACKEND_BAL_TIER -G group-01 |
46 | 53d4cdf1 | Iustin Pop | >>> !/(Nothing to do, exiting|No solution found)/ |
47 | 53d4cdf1 | Iustin Pop | >>>2 !/(Nothing to do, exiting|No solution found)/ |
48 | 53d4cdf1 | Iustin Pop | >>>= 0 |
49 | 53d4cdf1 | Iustin Pop | |
50 | 53d4cdf1 | Iustin Pop | # test command output |
51 | 189b51fa | Iustin Pop | ./htest/hbal $BACKEND_BAL_TIER -G group-01 -C -S $T/simu-rebal.tiered |
52 | 53d4cdf1 | Iustin Pop | >>> /gnt-instance (failover|migrate|replace-disks)/ |
53 | 53d4cdf1 | Iustin Pop | >>>= 0 |
54 | 53d4cdf1 | Iustin Pop | |
55 | 53d4cdf1 | Iustin Pop | # test saving commands |
56 | 189b51fa | Iustin Pop | ./htest/hbal $BACKEND_BAL_TIER -G group-01 -C$T/rebal-cmds.tiered |
57 | 53d4cdf1 | Iustin Pop | >>>= 0 |
58 | 53d4cdf1 | Iustin Pop | # and now check the file (depends on previous test) |
59 | 53d4cdf1 | Iustin Pop | cat $T/rebal-cmds.tiered |
60 | 53d4cdf1 | Iustin Pop | >>> /gnt-instance (failover|migrate|replace-disks)/ |
61 | 53d4cdf1 | Iustin Pop | >>>= 0 |
62 | 53d4cdf1 | Iustin Pop | |
63 | 53d4cdf1 | Iustin Pop | # state saved before rebalancing should be identical; depends on the |
64 | 53d4cdf1 | Iustin Pop | # previous test |
65 | 53d4cdf1 | Iustin Pop | diff -u $T/simu-rebal-merged.tiered $T/simu-rebal.tiered.original |
66 | 53d4cdf1 | Iustin Pop | >>> |
67 | 53d4cdf1 | Iustin Pop | >>>= 0 |
68 | 53d4cdf1 | Iustin Pop | |
69 | 53d4cdf1 | Iustin Pop | # no double rebalance; depends on previous test |
70 | 189b51fa | Iustin Pop | ./htest/hbal -t $T/simu-rebal.tiered.balanced -G group-01 |
71 | 53d4cdf1 | Iustin Pop | >>> /(Nothing to do, exiting|No solution found)/ |
72 | 53d4cdf1 | Iustin Pop | >>>= 0 |