class documentation
class OpInstanceMultiAllocBase(OpCode):
Known subclasses: ganeti.opcodes.OpInstanceMultiAlloc
Allocates multiple instances.
Method | __getstate__ |
Generic serializer. |
Method | __setstate__ |
Generic unserializer. |
Method |
|
Validates this opcode. |
Inherited from OpCode
:
Class Method |
|
Generic load opcode method. |
Method |
|
Generates a summary description of this opcode. |
Method |
|
Generates a compact summary description of the opcode. |
Constant | OP |
List of opcode attributes, the default values they should get if not already defined, and types they must match. |
Constant | OP |
Callable to verify opcode result |
Constant | WITH |
Boolean that specifies whether this should be included in mcpu's dispatch table |
Class Variable | OP |
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 |
A callable that should format the OP_DSC_FIELD; if not present, then the field will be simply converted to string |
Class Variable | OP |
The ID of this opcode. This should be unique amongst all children of this class. |
Instance Variable | dry |
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 |
|
Compute list of all parameters for an opcode. |
Method | __init__ |
Constructor for BaseOpCode. |
Inherited from ValidatedSlots
(via OpCode
, BaseOpCode
):
Class Method |
|
Compute the list of all declared slots for a class. |
Class Variable | __slots__ |
Undocumented |
Generic unserializer.
This method just restores from the serialized state the attributes of the current instance.
Parameters | |
state:dict | the serialized opcode data |
overrides
ganeti.opcodes_base.BaseOpCode.Validate
Validates this opcode.
We do this recursively.
Parameters | |
set | whether to set default values |
Returns | |
NoneType | None , if the validation succeeds |
Raises | |
errors.OpPrereqError | when a parameter value doesn't match requirements |