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

Class IAReqGroupChange

source code


A group change 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 = constants.IALLOCATOR_MODE_CHG_GROUP
  REQ_PARAMS = [("instances", _STRING_LIST), ("target_groups", _...
  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), ("target_groups", _STRING_LIST),]

REQ_RESULT

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