Remove Node.mCpu, replaced with the ipol vcpu_ratio
authorIustin Pop <iustin@google.com>
Tue, 24 Jan 2012 12:36:33 +0000 (13:36 +0100)
committerIustin Pop <iustin@google.com>
Thu, 26 Jan 2012 13:34:39 +0000 (14:34 +0100)
commit487e19623fe36ca24f825f6095ce2ea7cb1ad20d
tree098b268d417bcb92176b12b3f6a57e4877bc5d81
parente8fa4ff611981d82787dc2ed274a55030125a3da
Remove Node.mCpu, replaced with the ipol vcpu_ratio

Since the iPolicy contains the vcpu_ratio now, we can remove the
per-node mCpu value (which was the initial way to set this attribute).

Furthermore, we need to re-set the hiCpu value when changing the
policy.

And of course some associated unittest changes.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>
htools/Ganeti/HTools/Node.hs
htools/Ganeti/HTools/QC.hs