class documentation

class LUTestDelay(NoHooksLU):

View In Hierarchy

Sleep for a specified amount of time.

This LU sleeps on the master and/or nodes for a specified amount of time.

Method Exec Execute the test delay opcode, with the wanted repetitions.
Method ExpandNames Expand names and set required locks.
Constant REQ_BGL Undocumented
Instance Variable needed_locks Undocumented
Method _InterruptibleDelay Delays but provides the mechanisms necessary to interrupt the delay as needed.
Method _TestDelay Do the actual sleep.
Method _UninterruptibleDelay Delays without allowing interruptions.

Inherited from NoHooksLU:

Method BuildHooksEnv Empty BuildHooksEnv for NoHooksLu.
Method BuildHooksNodes Empty BuildHooksNodes for NoHooksLU.
Method PreparePostHookNodes Empty PreparePostHookNodes for NoHooksLU.
Constant HPATH Undocumented
Constant HTYPE Undocumented

Inherited from LogicalUnit (via NoHooksLU):

Method __init__ Constructor for LogicalUnit.
Method AssertReleasedLocks Raise AssertionError if the LU holds some locks of the given level.
Method CheckArguments Check syntactic validity for the opcode arguments.
Method CheckPrereq Check prerequisites for this LU.
Method DeclareLocks Declare LU locking needs for a level
Method HooksCallBack Notify the LU about the results of its hooks.
Method owned_locks Return the list of locks owned by the LU at a given level.
Method PrepareRetry Prepare the LU to run again.
Method release_request Return a request to release the specified locks of the given level.
Method WConfdClient Undocumented
Instance Variable add_locks Undocumented
Instance Variable cfg Undocumented
Instance Variable dont_collate_locks Undocumented
Instance Variable dry_run_result the value (if any) that will be returned to the caller in dry-run mode (signalled by opcode dry_run parameter)
Instance Variable Log Undocumented
Instance Variable LogInfo Undocumented
Instance Variable LogStep Undocumented
Instance Variable LogWarning Undocumented
Instance Variable op Undocumented
Instance Variable opportunistic_locks Undocumented
Instance Variable opportunistic_locks_count Undocumented
Instance Variable proc Undocumented
Instance Variable recalculate_locks Undocumented
Instance Variable rpc Undocumented
Instance Variable share_locks Undocumented
Instance Variable tasklets Undocumented
Instance Variable wconfd Undocumented
Instance Variable wconfdcontext Undocumented
Instance Variable wconfdlocks Undocumented
Method _ExpandAndLockInstance Helper function to expand and lock an instance.
Method _LockInstancesNodes Helper function to declare instances' nodes for locking.
def Exec(self, feedback_fn):

Execute the test delay opcode, with the wanted repetitions.

def ExpandNames(self):

Expand names and set required locks.

This expands the node list, if any.

REQ_BGL: bool =

Undocumented

Value
False
needed_locks: dict =
def _InterruptibleDelay(self):

Delays but provides the mechanisms necessary to interrupt the delay as needed.

def _TestDelay(self):

Do the actual sleep.

Returns
boolWhether the delay was interrupted
def _UninterruptibleDelay(self):

Delays without allowing interruptions.