0f271320e5e084178ed28d71e32caebbc1b8f480
[ganeti-local] / test / hs / shelltests / htools-single-group.test
1 # standard single-group tests
2 ./test/hs/hinfo -v -v -p --print-instances -t$T/simu-onegroup.standard
3 >>>= 0
4
5 ./test/hs/hbal  -v -v -p --print-instances -t$T/simu-onegroup.standard
6 >>>= 0
7
8 # hbal should not be able to balance
9 ./test/hs/hbal -t$T/simu-onegroup.standard
10 >>> /(Nothing to do, exiting|No solution found)/
11 >>>= 0
12
13
14 # tiered single-group tests
15 ./test/hs/hinfo -v -v -p --print-instances -t$T/simu-onegroup.tiered
16 >>>= 0
17
18 ./test/hs/hbal  -v -v -p --print-instances -t$T/simu-onegroup.tiered
19 >>>= 0
20
21 # hbal should not be able to balance
22 ./test/hs/hbal -t$T/simu-onegroup.tiered
23 >>> /(Nothing to do, exiting|No solution found)/
24 >>>= 0
25
26 # hcheck should not find reason to rebalance
27 ./test/hs/hcheck -t$T/simu-onegroup.tiered --machine-readable
28 >>> /HCHECK_INIT_CLUSTER_NEED_REBALANCE=0/
29 >>>= 0
30
31 # FIXME: remove option -f once the text backend supports indicating
32 #        the master node
33 # hroller should be able to print the solution
34 ./test/hs/hroller -f -t$T/simu-onegroup.tiered
35 >>>= 0
36
37 # hroller should be able to print the solution, in verbose mode as well
38 ./test/hs/hroller -f -t$T/simu-onegroup.tiered -v -v
39 >>>= 0