Package ganeti :: Module cmdlib :: Class LUTestDelay
[hide private]
[frames] | no frames]

Class LUTestDelay

source code


Sleep for a specified amount of time.

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

Instance Methods [hide private]
 
ExpandNames(self)
Expand names and set required locks.
source code
 
_TestDelay(self)
Do the actual sleep.
source code
 
Exec(self, feedback_fn)
Execute the test delay opcode, with the wanted repetitions.
source code

Inherited from NoHooksLU: BuildHooksEnv

Inherited from LogicalUnit: CheckArguments, CheckPrereq, DeclareLocks, HooksCallBack, __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _OP_PARAMS = [("duration", ht.NoDefault, ht.TFloat), ("on_mast...
a list of opcode attributes, their defaults values they should get if not already defined, and types they must match
  REQ_BGL = False

Inherited from NoHooksLU: HPATH, HTYPE

Inherited from LogicalUnit: ssh

Instance Variables [hide private]

Inherited from LogicalUnit: dry_run_result

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

ExpandNames(self)

source code 

Expand names and set required locks.

This expands the node list, if any.

Overrides: LogicalUnit.ExpandNames

Exec(self, feedback_fn)

source code 

Execute the test delay opcode, with the wanted repetitions.

Overrides: LogicalUnit.Exec

Class Variable Details [hide private]

_OP_PARAMS

a list of opcode attributes, their defaults values they should get if not already defined, and types they must match
Value:
[("duration", ht.NoDefault, ht.TFloat), ("on_master", True, ht.TBool),\
 ("on_nodes", ht.EmptyList, ht.TListOf(ht.TNonEmptyString)), ("repeat"\
, 0, ht.TPositiveInt)]