Revision e8fa4ff6 htools/Ganeti/HTools/QC.hs

b/htools/Ganeti/HTools/QC.hs
122 122
                                       , Types.iSpecNicCount   = 1
123 123
                                       }
124 124
  , Types.iPolicyDiskTemplates = [Types.DTDrbd8, Types.DTPlain]
125
  , Types.iPolicyVcpuRatio = 1024 -- somewhat random value, high
126
                                  -- enough to not impact us
125 127
  }
126 128

  
127 129

  
......
439 441
    imax <- genBiggerISpec istd
440 442
    num_tmpl <- choose (0, length allDiskTemplates)
441 443
    dts  <- genUniquesList num_tmpl
444
    vcpu_ratio <- arbitrary
442 445
    return Types.IPolicy { Types.iPolicyMinSpec = imin
443 446
                         , Types.iPolicyStdSpec = istd
444 447
                         , Types.iPolicyMaxSpec = imax
445 448
                         , Types.iPolicyDiskTemplates = dts
449
                         , Types.iPolicyVcpuRatio = vcpu_ratio
446 450
                         }
447 451

  
448 452
-- * Actual tests

Also available in: Unified diff