Revision d25643d1 htools/Ganeti/HTools/QC.hs
b/htools/Ganeti/HTools/QC.hs | ||
---|---|---|
111 | 111 |
-- | Create an instance given its spec. |
112 | 112 |
createInstance mem dsk vcpus = |
113 | 113 |
Instance.create "inst-unnamed" mem dsk vcpus "running" [] True (-1) (-1) |
114 |
Types.DTDrbd8 |
|
114 | 115 |
|
115 | 116 |
-- | Create a small cluster by repeating a node spec. |
116 | 117 |
makeSmallCluster :: Node.Node -> Int -> Node.List |
... | ... | |
191 | 192 |
sn <- arbitrary |
192 | 193 |
vcpus <- choose (0, maxCpu) |
193 | 194 |
return $ Instance.create name mem dsk vcpus run_st [] True pn sn |
195 |
Types.DTDrbd8 |
|
194 | 196 |
|
195 | 197 |
-- | Generas an arbitrary node based on sizing information. |
196 | 198 |
genNode :: Maybe Int -- ^ Minimum node size in terms of units |
Also available in: Unified diff