module documentation

Node group related commands

Function AddGroup Add a node group to the cluster.
Function AssignNodes Assign nodes to a group.
Function EvacuateGroup Evacuate a node group.
Function GroupInfo Shows info about node group.
Function ListGroupFields List node fields.
Function ListGroups List node groups and their properties.
Function Main Undocumented
Function RemoveGroup Remove a node group from the cluster.
Function RenameGroup Rename a node group.
Function SetGroupParams Modifies a node group's parameters.
Function ShowCreateCommand Shows the command that can be used to re-create a node group.
Variable commands Undocumented
Function _FmtDict Format dict data into command-line format.
Function _FormatGroupInfo Undocumented
Function _GetCreateCommand Undocumented
Constant _ENV_OVERRIDE Undocumented
Constant _LIST_DEF_FIELDS Undocumented
def AddGroup(opts, args):

Add a node group to the cluster.

Parameters
optsthe command line options selected by the user
args:lista list of length 1 with the name of the group to create
Returns
intthe desired exit code
def AssignNodes(opts, args):

Assign nodes to a group.

Parameters
optsthe command line options selected by the user
args:listargs[0]: group to assign nodes to; args[1:]: nodes to assign
Returns
intthe desired exit code
def EvacuateGroup(opts, args):

Evacuate a node group.

def GroupInfo(_, args):

Shows info about node group.

def ListGroupFields(opts, args):

List node fields.

Parameters
optsthe command line options selected by the user
args:listfields to list, or empty for all
Returns
intthe desired exit code
def ListGroups(opts, args):

List node groups and their properties.

Parameters
optsthe command line options selected by the user
args:listgroups to list, or empty for all
Returns
intthe desired exit code
def Main():

Undocumented

def RemoveGroup(opts, args):

Remove a node group from the cluster.

Parameters
optsthe command line options selected by the user
args:lista list of length 1 with the name of the group to remove
Returns
intthe desired exit code
def RenameGroup(opts, args):

Rename a node group.

Parameters
optsthe command line options selected by the user
args:lista list of length 2, [old_name, new_name]
Returns
intthe desired exit code
def SetGroupParams(opts, args):

Modifies a node group's parameters.

Parameters
optsthe command line options selected by the user
args:listshould contain only one element, the node group name
Returns
intthe desired exit code
def ShowCreateCommand(opts, args):

Shows the command that can be used to re-create a node group.

Currently it works only for ipolicy specs.

commands =

Undocumented

def _FmtDict(data):

Format dict data into command-line format.

Parameters
dataThe input dict to be formatted
Returns
The formatted dict
def _FormatGroupInfo(group):

Undocumented

def _GetCreateCommand(group):

Undocumented

_ENV_OVERRIDE =

Undocumented

Value
compat.UniqueFrozenset(['list'])
_LIST_DEF_FIELDS: list[str] =

Undocumented

Value
['name', 'node_cnt', 'pinst_cnt', 'alloc_policy', 'ndparams']