Change the Node.group attribute
Currently, the Node.group attribute is the UUID of the group, as until recently Ganeti didn't export the node group properties. Since it does so now, we make the following changes (again apologies for a big patch): - we change the group attribute to be an index, similar to the way an Instance.pnode and snode attributes point to the parent node(s) - on load, we read the group.uuid attribute and we use that to lookup the actual group index, from previously-loaded groups info - this means that we now first read groups, then read nodes using the group info, and then read instances using the node info This patch leaves a few functions showing the group index (ugly since it's htools internal), will be converted later. Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
Balazs Lecz <leczb@google.com>
Showing
- Ganeti/HTools/Cluster.hs 15 additions, 15 deletionsGaneti/HTools/Cluster.hs
- Ganeti/HTools/IAlloc.hs 9 additions, 6 deletionsGaneti/HTools/IAlloc.hs
- Ganeti/HTools/Luxi.hs 11 additions, 11 deletionsGaneti/HTools/Luxi.hs
- Ganeti/HTools/Node.hs 4 additions, 5 deletionsGaneti/HTools/Node.hs
- Ganeti/HTools/QC.hs 20 additions, 6 deletionsGaneti/HTools/QC.hs
- Ganeti/HTools/Rapi.hs 8 additions, 8 deletionsGaneti/HTools/Rapi.hs
- Ganeti/HTools/Simu.hs 1 addition, 1 deletionGaneti/HTools/Simu.hs
- Ganeti/HTools/Text.hs 17 additions, 18 deletionsGaneti/HTools/Text.hs
- hbal.hs 20 additions, 9 deletionshbal.hs
- hscan.hs 1 addition, 1 deletionhscan.hs
- hspace.hs 3 additions, 3 deletionshspace.hs
Loading
Please register or sign in to comment