Package ganeti :: Package masterd :: Module iallocator :: Class IAReqNodeEvac
[hide private]
[frames] | no frames]

Class IAReqNodeEvac

source code


A node evacuation request.

Nested Classes [hide private]

Inherited from IARequestBase: __metaclass__

Instance Methods [hide private]
 
GetRequest(self, cfg)
Get data for node-evacuate requests.
source code

Inherited from IARequestBase: Validate, ValidateResult, __init__

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

Class Methods [hide private]

Inherited from outils.ValidatedSlots: GetAllSlots

Class Variables [hide private]
  MODE = "node-evacuate"
  REQ_PARAMS = [("instances", _STRING_LIST), ("evac_mode", ht.TE...
  REQ_RESULT = ht.TAnd(ht.TIsLength(3), ht.TItems([_NEVAC_MOVED,...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

GetRequest(self, cfg)

source code 

Get data for node-evacuate requests.

Parameters:
  • cfg - The configuration instance
Overrides: IARequestBase.GetRequest

Class Variable Details [hide private]

REQ_PARAMS

Value:
[("instances", _STRING_LIST), ("evac_mode", ht.TElemOf(constants.IALLO\
CATOR_NEVAC_MODES)),]

REQ_RESULT

Value:
ht.TAnd(ht.TIsLength(3), ht.TItems([_NEVAC_MOVED, _NEVAC_FAILED, _JOB_\
LIST]))