class documentation

class OpClusterSetParams(OpCode):

View In Hierarchy

Change the parameters of the cluster.

Constant OP_PARAMS Undocumented
Constant OP_RESULT Undocumented
Instance Variable vg_name The new volume group name or None to disable LVM usage.

Inherited from OpCode:

Class Method LoadOpCode Generic load opcode method.
Method __getstate__ Specialized getstate for opcodes.
Method Summary Generates a summary description of this opcode.
Method TinySummary Generates a compact summary description of the opcode.
Constant WITH_LU Boolean that specifies whether this should be included in mcpu's dispatch table
Class Variable OP_DSC_FIELD The name of a field whose value will be included in the string returned by Summary(); see the docstring of that method for details).
Class Variable OP_DSC_FORMATTER A callable that should format the OP_DSC_FIELD; if not present, then the field will be simply converted to string
Class Variable OP_ID The ID of this opcode. This should be unique amongst all children of this class.
Instance Variable dry_run Whether the LU should be run in dry-run mode, i.e. just the check steps
Instance Variable priority Opcode priority for queue

Inherited from BaseOpCode (via OpCode):

Class Method GetAllParams Compute list of all parameters for an opcode.
Method __init__ Constructor for BaseOpCode.
Method __setstate__ Generic unserializer.
Method Validate Validate opcode parameters, optionally setting default values.

Inherited from ValidatedSlots (via OpCode, BaseOpCode):

Class Method GetAllSlots Compute the list of all declared slots for a class.
Class Variable __slots__ Undocumented
OP_PARAMS =

Undocumented

Value
[('force', False, ht.TBool, 'Whether to force the operation'),
 ('hv_state', None, ht.TMaybe(ht.TObject(ht.TAny)), 'Set hypervisor states'),
 ('disk_state', None, ht.TMaybe(ht.TObject(ht.TAny)), 'Set disk states'),
 ('vg_name', None, ht.TMaybe(ht.TString), 'Volume group name'),
 ('enabled_hypervisors',
  None,
  ht.TMaybe(ht.TListOf(ht.THypervisor)),
...
vg_name: str or None =

The new volume group name or None to disable LVM usage.