Trees | Indices | Help |
|
---|
|
Logical unit for adding node to the cluster.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
HPATH = "node-add"
|
|||
HTYPE = "NODE"
|
|||
_OP_PARAMS = [_PNodeName, ("primary_ip", None, _NoType), ("sec a list of opcode attributes, their defaults values they should get if not already defined, and types they must match |
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Check syntactic validity for the opcode arguments. This method is for doing a simple syntactic check and ensure validity of opcode parameters, without any cluster-related checks. While the same can be accomplished in ExpandNames and/or CheckPrereq, doing these separate is better because:
The function is allowed to change the self.op attribute so that later methods can no longer worry about missing parameters.
|
Build hooks env. This will run on all nodes before, and on all nodes + the new node after.
|
Check prerequisites. This checks:
Any errors are signaled by raising errors.OpPrereqError.
|
Adds the new node to the cluster.
|
|
_OP_PARAMSa list of opcode attributes, their defaults values they should get if not already defined, and types they must match
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Dec 9 15:55:26 2010 | http://epydoc.sourceforge.net |