Update default instance kernel version
[ganeti-local] / test / htools-multi-group.test
1 # standard multi-group tests
2 ./test/hinfo -v -v -p --print-instances -t$T/simu-twogroups.standard
3 >>>= 0
4 ./test/hbal -t$T/simu-twogroups.standard
5 >>>= !0
6
7 # hbal should not be able to balance
8 ./test/hbal -t$T/simu-twogroups.standard
9 >>>2 /Found multiple node groups/
10 >>>= !0
11
12 # but hbal should be able to balance one node group
13 ./test/hbal -t$T/simu-twogroups.standard -G group-01
14 >>>= 0
15 # and it should not find an invalid group
16 ./test/hbal -t$T/simu-twogroups.standard -G no-such-group
17 >>>= !0
18
19 # tiered allocs multi-group tests
20 ./test/hinfo -v -v -p --print-instances -t$T/simu-twogroups.tiered
21 >>>= 0
22 ./test/hbal -t$T/simu-twogroups.tiered
23 >>>= !0
24
25 # hbal should not be able to balance
26 ./test/hbal -t$T/simu-twogroups.tiered
27 >>>2 /Found multiple node groups/
28 >>>= !0
29
30 # but hbal should be able to balance one node group
31 ./test/hbal -t$T/simu-twogroups.tiered -G group-01
32 >>>= 0
33 # and it should not find an invalid group
34 ./test/hbal -t$T/simu-twogroups.tiered -G no-such-group
35 >>>= !0