Trees | Indices | Help |
|
---|
|
Verifies the cluster status.
|
|||
NodeImage A class representing the logical and physical status of a node. |
|
|||
|
|||
|
|||
|
|||
boolean |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
HPATH = "cluster-verify"
|
|||
HTYPE = "CLUSTER"
|
|||
_OP_PARAMS = [("skip_checks", _EmptyList, _TListOf(_TElemOf(co a list of opcode attributes, their defaults values they should get if not already defined, and types they must match |
|||
REQ_BGL = False
|
|||
TCLUSTER = "cluster"
|
|||
TNODE = "node"
|
|||
TINSTANCE = "instance"
|
|||
ECLUSTERCFG = TCLUSTER, "ECLUSTERCFG"
|
|||
ECLUSTERCERT = TCLUSTER, "ECLUSTERCERT"
|
|||
EINSTANCEBADNODE = TINSTANCE, "EINSTANCEBADNODE"
|
|||
EINSTANCEDOWN = TINSTANCE, "EINSTANCEDOWN"
|
|||
EINSTANCELAYOUT = TINSTANCE, "EINSTANCELAYOUT"
|
|||
EINSTANCEMISSINGDISK = TINSTANCE, "EINSTANCEMISSINGDISK"
|
|||
EINSTANCEWRONGNODE = TINSTANCE, "EINSTANCEWRONGNODE"
|
|||
ENODEDRBD = TNODE, "ENODEDRBD"
|
|||
ENODEDRBDHELPER = TNODE, "ENODEDRBDHELPER"
|
|||
ENODEFILECHECK = TNODE, "ENODEFILECHECK"
|
|||
ENODEHOOKS = TNODE, "ENODEHOOKS"
|
|||
ENODEHV = TNODE, "ENODEHV"
|
|||
ENODELVM = TNODE, "ENODELVM"
|
|||
ENODEN1 = TNODE, "ENODEN1"
|
|||
ENODENET = TNODE, "ENODENET"
|
|||
ENODEOS = TNODE, "ENODEOS"
|
|||
ENODEORPHANINSTANCE = TNODE, "ENODEORPHANINSTANCE"
|
|||
ENODEORPHANLV = TNODE, "ENODEORPHANLV"
|
|||
ENODERPC = TNODE, "ENODERPC"
|
|||
ENODESSH = TNODE, "ENODESSH"
|
|||
ENODEVERSION = TNODE, "ENODEVERSION"
|
|||
ENODESETUP = TNODE, "ENODESETUP"
|
|||
ENODETIME = TNODE, "ENODETIME"
|
|||
ETYPE_FIELD = "code"
|
|||
ETYPE_ERROR = "ERROR"
|
|||
ETYPE_WARNING = "WARNING"
|
|||
Inherited from |
|
|||
Inherited from |
|
|||
Inherited from |
|
Expand names for this LU. This method is called before starting to execute the opcode, and it should update all the parameters of the opcode to their canonical form (e.g. a short node name must be fully expanded after this method has successfully completed). This way locking, hooks, logging, ecc. can work correctly. LUs which implement this method must also populate the self.needed_locks member, as a dict with lock levels as keys, and a list of needed lock names as values. Rules:
If you need to share locks (rather than acquire them exclusively) at one level you can modify self.share_locks, setting a true value (usually 1) for that level. By default locks are not shared. This function can also define a list of tasklets, which then will be executed in order instead of the usual LU-level CheckPrereq and Exec functions, if those are not defined by the LU. Examples: # Acquire all nodes and one instance self.needed_locks = { locking.LEVEL_NODE: locking.ALL_SET, locking.LEVEL_INSTANCE: ['instance1.example.com'], } # Acquire just two nodes self.needed_locks = { locking.LEVEL_NODE: ['node1.example.com', 'node2.example.com'], } # Acquire no locks self.needed_locks = {} # No, you can't leave it to the default value None
|
Format an error message. Based on the opcode's error_codes parameter, either format a parseable error code, or a simpler error string. This must be called only from Exec and functions called from Exec. |
Perform some basic validation on data returned from a node.
|
Check the node time.
|
Check the node time.
|
Check the node time.
|
Verify an instance. This function checks to see if the required block devices are available on the instance's node. |
Verify if there are any unknown volumes in the cluster. The .os, .swap and backup volumes are ignored. All other volumes are reported as unknown.
|
Verify the list of running instances. This checks what instances are running but unknown to the cluster. |
Verify N+1 Memory Resilience. Check that if one single node dies we can still start all the instances it was primary for. |
Verifies and computes the node required file checksums.
|
Verifies and the node DRBD status.
|
Builds the node OS structures.
|
Verifies the node OS list.
|
Verifies and updates the node volume data. This function will update a NodeImage's internal structures with data from the remote call.
|
Verifies and updates the node instance list. If the listing was successful, then updates this node's instance list. Otherwise, it marks the RPC call as failed for the instance list key.
|
Verifies and computes a node information map
|
Build hooks env. Cluster-Verify hooks just ran in the post phase and their failure makes the output be logged in the verify output and the verification to fail.
|
Verify integrity of cluster, performing various test on nodes.
|
Analyze the post-hooks' result This method analyses the hook result, handles it, and sends some nicely-formatted feedback back to the user.
|
|
_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:32 2010 | http://epydoc.sourceforge.net |