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

Class IAReqMultiInstanceAlloc

source code


An multi instance allocation request.

Nested Classes [hide private]

Inherited from IARequestBase: __metaclass__

Instance Methods [hide private]
 
GetRequest(self, cfg)
Gets the request data dict.
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_MULTI_ALLOC
  REQ_PARAMS = [("instances", ht.TListOf(ht.TInstanceOf(IAReqIns...
  _MASUCCESS = ht.TListOf(ht.TAnd(ht.TIsLength(2), ht.TItems([ht...
  _MAFAILED = ht.TListOf(ht.TNonEmptyString)
  REQ_RESULT = ht.TAnd(ht.TList, ht.TIsLength(2), ht.TItems([_MA...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

GetRequest(self, cfg)

source code 

Gets the request data dict.

Parameters:
  • cfg - The configuration instance
Overrides: IARequestBase.GetRequest
(inherited documentation)

Class Variable Details [hide private]

REQ_PARAMS

Value:
[("instances", ht.TListOf(ht.TInstanceOf(IAReqInstanceAlloc))),]

_MASUCCESS

Value:
ht.TListOf(ht.TAnd(ht.TIsLength(2), ht.TItems([ht.TNonEmptyString, ht.\
TListOf(ht.TNonEmptyString),])))

REQ_RESULT

Value:
ht.TAnd(ht.TList, ht.TIsLength(2), ht.TItems([_MASUCCESS, _MAFAILED]))