class OpNodeAdd(OpCode):
Add a node to the cluster.
Constant | OP |
Undocumented |
Constant | OP |
Undocumented |
Instance Variable | group |
The node group to which this node will belong. |
Instance Variable | master |
The master_capable node attribute |
Instance Variable | node |
The name of the node to add. This can be a short name, but it will be expanded to the FQDN. |
Instance Variable | primary |
The primary IP of the node. This will be ignored when the opcode is submitted, but will be filled during the node add (so it will be visible in the job query). |
Instance Variable | readd |
Whether to re-add an existing node to the cluster. If this is not passed, then the operation will abort if the node name is already in the cluster; use this parameter to 'repair' a node that had its configuration broken, or was reinstalled without removal from the cluster. |
Instance Variable | secondary |
The secondary IP of the node. This needs to be passed if the cluster has been initialized in 'dual-network' mode, otherwise it must not be given. |
Instance Variable | vm |
The vm_capable node attribute |
Inherited from OpCode
:
Class Method |
|
Generic load opcode method. |
Method | __getstate__ |
Specialized getstate for opcodes. |
Method |
|
Generates a summary description of this opcode. |
Method |
|
Generates a compact summary description of the opcode. |
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 |
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. |
Method | __setstate__ |
Generic unserializer. |
Method |
|
Validate opcode parameters, optionally setting default values. |
Inherited from ValidatedSlots
(via OpCode
, BaseOpCode
):
Class Method |
|
Compute the list of all declared slots for a class. |
Class Variable | __slots__ |
Undocumented |
ganeti.opcodes.OpCode.OP_PARAMS
Undocumented
Value |
|
The name of the node to add. This can be a short name, but it will be expanded to the FQDN.
The primary IP of the node. This will be ignored when the opcode is submitted, but will be filled during the node add (so it will be visible in the job query).
Whether to re-add an existing node to the cluster. If this is not passed, then the operation will abort if the node name is already in the cluster; use this parameter to 'repair' a node that had its configuration broken, or was reinstalled without removal from the cluster.
The secondary IP of the node. This needs to be passed if the cluster has been initialized in 'dual-network' mode, otherwise it must not be given.