htools: add spindle-related attribute to nodes
This adds the spindleCount, hiSpindles and instSpindles attributes. The spindleCount is equivalent to spindle_count on the ganeti side (a node parameter). hiSpindles is the maximum instance-used spindles, and instSpindles will be used to track spindles as used by instances (in later patches). The patch also reads spindleCount from the live backends. The text and simu backends currently set it to 1, hard-coded. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
Showing
- htools/Ganeti/HTools/IAlloc.hs 6 additions, 3 deletionshtools/Ganeti/HTools/IAlloc.hs
- htools/Ganeti/HTools/Luxi.hs 6 additions, 5 deletionshtools/Ganeti/HTools/Luxi.hs
- htools/Ganeti/HTools/Node.hs 19 additions, 3 deletionshtools/Ganeti/HTools/Node.hs
- htools/Ganeti/HTools/QC.hs 1 addition, 1 deletionhtools/Ganeti/HTools/QC.hs
- htools/Ganeti/HTools/Rapi.hs 5 additions, 3 deletionshtools/Ganeti/HTools/Rapi.hs
- htools/Ganeti/HTools/Simu.hs 2 additions, 2 deletionshtools/Ganeti/HTools/Simu.hs
- htools/Ganeti/HTools/Text.hs 2 additions, 2 deletionshtools/Ganeti/HTools/Text.hs
Loading
Please register or sign in to comment