+ [NOHDR_OPT, SEP_OPT, FIELDS_OPT, VERBOSE_OPT, FORCE_FILTER_OPT],
+ "[<group_name>...]",
+ "Lists the node groups in the cluster. The available fields can be shown"
+ " using the \"list-fields\" command (see the man page for details)."
+ " The default list is (in order): %s." % utils.CommaJoin(_LIST_DEF_FIELDS)),
+ "list-fields": (
+ ListGroupFields, [ArgUnknown()], [NOHDR_OPT, SEP_OPT], "[fields...]",
+ "Lists all available fields for node groups"),
+ "modify": (
+ SetGroupParams, ARGS_ONE_GROUP,
+ [DRY_RUN_OPT, SUBMIT_OPT, ALLOC_POLICY_OPT, NODE_PARAMS_OPT, HV_STATE_OPT,
+ DISK_STATE_OPT, DISK_PARAMS_OPT] + INSTANCE_POLICY_OPTS,
+ "<group_name>", "Alters the parameters of a node group"),
+ "remove": (
+ RemoveGroup, ARGS_ONE_GROUP, [DRY_RUN_OPT],
+ "[--dry-run] <group-name>",
+ "Remove an (empty) node group from the cluster"),
+ "rename": (
+ RenameGroup, [ArgGroup(min=2, max=2)], [DRY_RUN_OPT],
+ "[--dry-run] <group-name> <new-name>", "Rename a node group"),
+ "evacuate": (
+ EvacuateGroup, [ArgGroup(min=1, max=1)],
+ [TO_GROUP_OPT, IALLOCATOR_OPT, EARLY_RELEASE_OPT],
+ "[-I <iallocator>] [--to <group>]",
+ "Evacuate all instances within a group"),
+ "list-tags": (
+ ListTags, ARGS_ONE_GROUP, [PRIORITY_OPT],
+ "<instance_name>", "List the tags of the given instance"),
+ "add-tags": (
+ AddTags, [ArgGroup(min=1, max=1), ArgUnknown()],
+ [TAG_SRC_OPT, PRIORITY_OPT],
+ "<instance_name> tag...", "Add tags to the given instance"),
+ "remove-tags": (
+ RemoveTags, [ArgGroup(min=1, max=1), ArgUnknown()],
+ [TAG_SRC_OPT, PRIORITY_OPT],
+ "<instance_name> tag...", "Remove tags from given instance"),
+ }