Make hroller insist on finding precisely one master node
As people rely on the master node being the last node of the last group, make hroller fail, if no master node could be found in the cluster. This happens, e.g., if a backend format is used that does not contain information about the master node. The error can be turned into a warning by using the --force option. Signed-off-by:Klaus Aehlig <aehlig@google.com> Reviewed-by:
Guido Trotter <ultrotter@google.com>
Showing
- src/Ganeti/HTools/CLI.hs 11 additions, 0 deletionssrc/Ganeti/HTools/CLI.hs
- src/Ganeti/HTools/Program/Hroller.hs 9 additions, 0 deletionssrc/Ganeti/HTools/Program/Hroller.hs
- src/Ganeti/Utils.hs 5 additions, 0 deletionssrc/Ganeti/Utils.hs
- test/hs/shelltests/htools-invalid.test 7 additions, 3 deletionstest/hs/shelltests/htools-invalid.test
- test/hs/shelltests/htools-single-group.test 4 additions, 2 deletionstest/hs/shelltests/htools-single-group.test
Loading
Please register or sign in to comment