class documentation

class IAReqInstanceAlloc(IARequestBase):

View In Hierarchy

An instance allocation request.

Method GetRequest Requests a new instance.
Method RequiredNodes Calculates the required nodes based on the disk_template.
Method ValidateResult Validates an single instance allocation request.
Constant REQ_PARAMS Undocumented

Inherited from IARequestBase:

Method __init__ Constructor for IARequestBase.
Method GetExtraParams Gets extra parameters to the IAllocator call.
Method Validate Validates all parameters of the request.

Inherited from ValidatedSlots (via IARequestBase):

Class Method GetAllSlots Compute the list of all declared slots for a class.
Class Variable __slots__ Undocumented
def GetRequest(self, cfg):

Requests a new instance.

The checks for the completeness of the opcode must have already been done.

def RequiredNodes(self):

Calculates the required nodes based on the disk_template.

def ValidateResult(self, ia, result):

Validates an single instance allocation request.

REQ_PARAMS =

Undocumented

Value
[_INST_NAME,
 ('memory', ht.TNonNegativeInt),
 ('spindle_use', ht.TNonNegativeInt),
 ('disks', ht.TListOf(ht.TDict)),
 ('disk_template', ht.TString),
 ('group_name', ht.TMaybe(ht.TNonEmptyString)),
 ('os', ht.TString),
...