diff --git a/doc/iallocator.rst b/doc/iallocator.rst index 248a9dfc66049f0c3cf0d40293e7181dce7fbb1a..6b90e869b958c651d7a0cf389d3ba18790881324 100644 --- a/doc/iallocator.rst +++ b/doc/iallocator.rst @@ -239,6 +239,9 @@ nodes i_pri_up_memory: total memory required by running primary instances + group: + the node group that this node belongs to + No allocations should be made on nodes having either the ``drained`` or ``offline`` flags set. More details about these of node status flags is available in the manpage :manpage:`ganeti(7)`. diff --git a/lib/cmdlib.py b/lib/cmdlib.py index 4fd253a6ceffc7a465d84bcf572a30455074a34e..869d2a9a43cf5d49210be2bd329f1bf6eee472ad 100644 --- a/lib/cmdlib.py +++ b/lib/cmdlib.py @@ -10234,6 +10234,7 @@ class IAllocator(object): "offline": ninfo.offline, "drained": ninfo.drained, "master_candidate": ninfo.master_candidate, + "group": ninfo.group, } if not (ninfo.offline or ninfo.drained):