Revision 591fa888 htest/shelltests/htools-balancing.test
b/htest/shelltests/htools-balancing.test | ||
---|---|---|
13 | 13 |
>>> /gnt-instance (failover|migrate|replace-disks)/ |
14 | 14 |
>>>= 0 |
15 | 15 |
|
16 |
# test that hbal won't execute rebalances when using the text backend |
|
17 |
./htest/hbal $BACKEND_BAL_STD -G group-01 -X |
|
18 |
>>>2 |
|
19 |
Error: hbal: Execution of commands possible only on LUXI |
|
20 |
>>>= !0 |
|
21 |
|
|
22 |
# test that hbal won't execute any moves if we request an absurdly-high |
|
23 |
# minimum-improvement |
|
24 |
./htest/hbal $BACKEND_BAL_STD -G group-01 -C --min-gain 10000 --min-gain-limit 10000 |
|
25 |
>>>/No solution found/ |
|
26 |
>>>= 0 |
|
27 |
|
|
16 | 28 |
# test saving commands |
17 | 29 |
./htest/hbal $BACKEND_BAL_STD -G group-01 -C$T/rebal-cmds.standard |
18 | 30 |
>>>= 0 |
... | ... | |
70 | 82 |
./htest/hbal -t $T/simu-rebal.tiered.balanced -G group-01 |
71 | 83 |
>>> /(Nothing to do, exiting|No solution found)/ |
72 | 84 |
>>>= 0 |
85 |
|
|
86 |
### now some other custom tests |
|
87 |
|
|
88 |
# n+1 bad instances are reported as such |
|
89 |
./htest/hbal -t$TESTDATA_DIR/n1-failure.data -G group-01 |
|
90 |
>>>/Initial check done: 4 bad nodes, 8 bad instances./ |
|
91 |
>>>=0 |
|
92 |
|
|
93 |
# same test again, different message check (shelltest can't test multiple |
|
94 |
# messages via regexp |
|
95 |
./htest/hbal -t$TESTDATA_DIR/n1-failure.data -G group-01 |
|
96 |
>>>/Cluster is not N\+1 happy, continuing but no guarantee that the cluster will end N\+1 happy./ |
|
97 |
>>>2 |
|
98 |
>>>=0 |
|
99 |
|
|
100 |
# hbal should work on empty groups as well |
|
101 |
./htest/hbal -t$TESTDATA_DIR/n1-failure.data -G group-02 |
|
102 |
>>>/Group size 0 nodes, 0 instances/ |
|
103 |
>>>= 0 |
Also available in: Unified diff