class IARequestBase(outils.ValidatedSlots):
Known subclasses: ganeti.masterd.iallocator.IAReqGroupChange
, ganeti.masterd.iallocator.IAReqInstanceAlloc
, ganeti.masterd.iallocator.IAReqInstanceAllocateSecondary
, ganeti.masterd.iallocator.IAReqMultiInstanceAlloc
, ganeti.masterd.iallocator.IAReqNodeEvac
, ganeti.masterd.iallocator.IAReqRelocate
A generic IAllocator request object.
Method | __init__ |
Constructor for IARequestBase. |
Method |
|
Gets extra parameters to the IAllocator call. |
Method |
|
Gets the request data dict. |
Method |
|
Validates all parameters of the request. |
Method |
|
Validates the result of an request. |
Constant | REQ |
Undocumented |
Inherited from ValidatedSlots
:
Class Method |
|
Compute the list of all declared slots for a class. |
Class Variable | __slots__ |
Undocumented |
ganeti.outils.ValidatedSlots.__init__
Constructor for IARequestBase.
The constructor takes only keyword arguments and will set attributes on this object based on the passed arguments. As such, it means that you should not pass arguments which are not in the REQ_PARAMS attribute for this class.
ganeti.masterd.iallocator.IAReqGroupChange
, ganeti.masterd.iallocator.IAReqInstanceAlloc
, ganeti.masterd.iallocator.IAReqInstanceAllocateSecondary
, ganeti.masterd.iallocator.IAReqMultiInstanceAlloc
, ganeti.masterd.iallocator.IAReqNodeEvac
, ganeti.masterd.iallocator.IAReqRelocate
Gets the request data dict.
Parameters | |
cfg | The configuration instance |
ganeti.outils.ValidatedSlots.Validate
Validates all parameters of the request.
This method returns None
if the validation succeeds, or raises an exception otherwise.
Returns | |
NoneType | None , if the validation succeeds |
Raises | |
Exception | validation fails |
Validates the result of an request.
Parameters | |
ia | The IAllocator instance |
result | The IAllocator run result |
Raises | |
ResultValidationError | If validation fails |
ganeti.masterd.iallocator.IAReqGroupChange
, ganeti.masterd.iallocator.IAReqInstanceAlloc
, ganeti.masterd.iallocator.IAReqInstanceAllocateSecondary
, ganeti.masterd.iallocator.IAReqMultiInstanceAlloc
, ganeti.masterd.iallocator.IAReqNodeEvac
, ganeti.masterd.iallocator.IAReqRelocate
Undocumented
Value |
|