class documentation

class IAReqRelocate(IARequestBase):

View In Hierarchy

A relocation request.

Method GetRequest Request an relocation of an instance
Method ValidateResult Validates the result of an relocation request.
Constant REQ_PARAMS Undocumented
Static Method _NodesToGroups Returns a list of unique group names for a list of nodes.

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):

Request an relocation of an instance

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

def ValidateResult(self, ia, result):

Validates the result of an relocation request.

REQ_PARAMS =

Undocumented

Value
[_INST_UUID, ('relocate_from_node_uuids', _STRING_LIST)]
@staticmethod
def _NodesToGroups(node2group, groups, nodes):

Returns a list of unique group names for a list of nodes.

Parameters
node2group:dictMap from node name to group UUID
groups:dictGroup information
nodes:listNode names