Package ganeti :: Package cmdlib :: Module misc :: 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 base.NoHooksLU: BuildHooksEnv, BuildHooksNodes

Inherited from base.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 base.NoHooksLU: HPATH, HTYPE

Instance Variables [hide private]

Inherited from base.LogicalUnit: dry_run_result

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

ExpandNames(self)

source code 

Gather locks we need.

Overrides: base.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: base.LogicalUnit.CheckPrereq

Exec(self, feedback_fn)

source code 

Execute OOB and return result if we expect any.

Overrides: base.LogicalUnit.Exec

_CheckPayload(self, result)

source code 

Checks if the payload is valid.

Parameters:
  • result - RPC result
Raises: