The addition of global capacity checks broke the hspace option --independent-groups. Fix this by handling the option as follows. If given, - first check which groups are not redundant at the moment, and - then ignore those groups, both for allocation as well as for redundancy checks.
Klaus Aehlig (5): Add a parameter to ignore groups in capacity checks Make global N+1 checks honor algCapacityIgnoreGroups Add a predicate whether a group is globally N+1 redundant Make hspace correctly handle --independent-groups Add a test for group independence in capacity checks Makefile.am | 1 + src/Ganeti/HTools/AlgorithmParams.hs | 3 +++ src/Ganeti/HTools/GlobalN1.hs | 11 ++++++++++- src/Ganeti/HTools/Program/Hspace.hs | 29 +++++++++++++++++++++-------- test/data/htools/hspace-bad-group.data | 15 +++++++++++++++ test/hs/shelltests/htools-hspace.test | 16 ++++++++++++++++ 6 files changed, 66 insertions(+), 9 deletions(-) create mode 100644 test/data/htools/hspace-bad-group.data -- 2.6.0.rc0.131.gf624c3d
