Revision 30dd3377
b/src/Ganeti/HTools/Backend/Simu.hs | ||
---|---|---|
78 | 78 |
(apol, ncount, disk, mem, cpu, spindles) <- parseDesc spec $ |
79 | 79 |
sepSplit ',' spec |
80 | 80 |
let nodes = map (\idx -> |
81 |
Node.create (printf "node-%02d-%03d" grpIndex idx) |
|
82 |
(fromIntegral mem) 0 mem |
|
83 |
(fromIntegral disk) disk |
|
84 |
(fromIntegral cpu) False spindles grpIndex |
|
81 |
flip Node.setMaster (grpIndex == 1 && idx == 1) $ |
|
82 |
Node.create (printf "node-%02d-%03d" grpIndex idx) |
|
83 |
(fromIntegral mem) 0 mem |
|
84 |
(fromIntegral disk) disk |
|
85 |
(fromIntegral cpu) False spindles grpIndex |
|
85 | 86 |
) [1..ncount] |
86 | 87 |
grp = Group.create (printf "group-%02d" grpIndex) |
87 | 88 |
(printf "fake-uuid-%02d" grpIndex) apol defIPolicy [] |
b/test/hs/shelltests/htools-single-group.test | ||
---|---|---|
28 | 28 |
>>> /HCHECK_INIT_CLUSTER_NEED_REBALANCE=0/ |
29 | 29 |
>>>= 0 |
30 | 30 |
|
31 |
# FIXME: remove option -f once the text backend supports indicating |
|
32 |
# the master node |
|
33 | 31 |
# hroller should be able to print the solution |
34 |
./test/hs/hroller -f -t$T/simu-onegroup.tiered
|
|
32 |
./test/hs/hroller -t$T/simu-onegroup.tiered |
|
35 | 33 |
>>>= 0 |
36 | 34 |
|
37 | 35 |
# 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
|
|
36 |
./test/hs/hroller -t$T/simu-onegroup.tiered -v -v |
|
39 | 37 |
>>>= 0 |
Also available in: Unified diff