class documentation
class LUTestDelay(NoHooksLU):
Sleep for a specified amount of time.
This LU sleeps on the master and/or nodes for a specified amount of time.
Method |
|
Execute the test delay opcode, with the wanted repetitions. |
Method |
|
Expand names and set required locks. |
Constant | REQ |
Undocumented |
Instance Variable | needed |
Undocumented |
Method | _ |
Delays but provides the mechanisms necessary to interrupt the delay as needed. |
Method | _ |
Do the actual sleep. |
Method | _ |
Delays without allowing interruptions. |
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 syntactic validity for the opcode arguments. |
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. |
overrides
ganeti.cmdlib.base.LogicalUnit.Exec
Execute the test delay opcode, with the wanted repetitions.