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

Class LUOobCommand

source code


Logical unit for OOB handling.

Instance Methods [hide private]
 
ExpandNames(self)
Gather locks we need.
source code
 
CheckPrereq(self)
Check prerequisites.
source code
 
Exec(self, feedback_fn)
Execute OOB and return result if we expect any.
source code
 
_CheckPayload(self, result)
Checks if the payload is valid.
source code

Inherited from NoHooksLU: BuildHooksEnv, BuildHooksNodes

Inherited from LogicalUnit: CheckArguments, DeclareLocks, HooksCallBack, __init__

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

Class Variables [hide private]
  REQ_BGL = False
  _SKIP_MASTER = constants.OOB_POWER_OFF, constants.OOB_POWER_CYCLE

Inherited from NoHooksLU: HPATH, HTYPE

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 

Gather locks we need.

Overrides: LogicalUnit.ExpandNames

CheckPrereq(self)

source code 

Check prerequisites.

This checks:

  • the node exists in the configuration
  • OOB is supported

Any errors are signaled by raising errors.OpPrereqError.

Overrides: LogicalUnit.CheckPrereq

Exec(self, feedback_fn)

source code 

Execute OOB and return result if we expect any.

Overrides: LogicalUnit.Exec

_CheckPayload(self, result)

source code 

Checks if the payload is valid.

Parameters:
  • result - RPC result
Raises: