Package ganeti :: Module opcodes :: Class OpTestDelay
[hide private]
[frames] | no frames]

Class OpTestDelay

source code

Sleeps for a configured amount of time.

This is used just for debugging and testing.


If the on_master parameter is true, it will execute a sleep on the master (before any node sleep).

If the on_nodes list is not empty, it will sleep on those nodes (after the sleep on the master, if that is enabled).

As an additional feature, the case of duration < 0 will be reported as an execution error, so this opcode can be used as a failure generator. The case of duration == 0 will not be treated specially.

Instance Methods [hide private]

Inherited from OpCode: Summary, __getstate__

Inherited from BaseOpCode: __init__, __setstate__

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

Class Methods [hide private]

Inherited from OpCode: LoadOpCode

Inherited from BaseOpCode (private): _all_slots

Class Variables [hide private]
The ID of this opcode.
  OP_DSC_FIELD = "duration"
Instance Variables [hide private]

Inherited from OpCode: dry_run, priority

Properties [hide private]

Inherited from object: __class__