class documentation
class LUNodePowercycle(NoHooksLU):
Powercycles a node.
Method |
|
Check syntactic validity for the opcode arguments. |
Method |
|
Reboots a node. |
Method |
|
Locking for PowercycleNode. |
Constant | REQ |
Undocumented |
Instance Variable | needed |
Undocumented |
Inherited from NoHooksLU
:
Method |
|
Empty BuildHooksEnv for NoHooksLu. |
Method |
|
Empty BuildHooksNodes for NoHooksLU. |
Method |
|
Empty PreparePostHookNodes for NoHooksLU. |
Constant | HPATH |
Undocumented |
Constant | HTYPE |
Undocumented |
Inherited from LogicalUnit
(via NoHooksLU
):
Method | __init__ |
Constructor for LogicalUnit. |
Method |
|
Raise AssertionError if the LU holds some locks of the given level. |
Method |
|
Check prerequisites for this LU. |
Method |
|
Declare LU locking needs for a level |
Method |
|
Notify the LU about the results of its hooks. |
Method | owned |
Return the list of locks owned by the LU at a given level. |
Method |
|
Prepare the LU to run again. |
Method | release |
Return a request to release the specified locks of the given level. |
Method |
|
Undocumented |
Instance Variable | add |
Undocumented |
Instance Variable | cfg |
Undocumented |
Instance Variable | dont |
Undocumented |
Instance Variable | dry |
the value (if any) that will be returned to the caller in dry-run mode (signalled by opcode dry_run parameter) |
Instance Variable |
|
Undocumented |
Instance Variable |
|
Undocumented |
Instance Variable |
|
Undocumented |
Instance Variable |
|
Undocumented |
Instance Variable | op |
Undocumented |
Instance Variable | opportunistic |
Undocumented |
Instance Variable | opportunistic |
Undocumented |
Instance Variable | proc |
Undocumented |
Instance Variable | recalculate |
Undocumented |
Instance Variable | rpc |
Undocumented |
Instance Variable | share |
Undocumented |
Instance Variable | tasklets |
Undocumented |
Instance Variable | wconfd |
Undocumented |
Instance Variable | wconfdcontext |
Undocumented |
Instance Variable | wconfdlocks |
Undocumented |
Method | _ |
Helper function to expand and lock an instance. |
Method | _ |
Helper function to declare instances' nodes for locking. |
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:
- ExpandNames is left as as purely a lock-related function
- CheckPrereq is run after we have acquired locks (and possible waited for them)
The function is allowed to change the self.op attribute so that later methods can no longer worry about missing parameters.