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

Class IAReqRelocate

source code


A relocation request.

Nested Classes [hide private]

Inherited from IARequestBase: __metaclass__

Instance Methods [hide private]
 
REQ_RESULT(val)
Checks if the given value is a list.
source code
 
GetRequest(self, cfg)
Request an relocation of an instance
source code
 
ValidateResult(self, ia, result)
Validates the result of an relocation request.
source code

Inherited from IARequestBase: GetExtraParams, Validate, __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

Static Methods [hide private]
 
_NodesToGroups(node2group, groups, nodes)
Returns a list of unique group names for a list of nodes.
source code
Class Variables [hide private]
  MODE = constants.IALLOCATOR_MODE_RELOC
  REQ_PARAMS = [_INST_UUID, ("relocate_from_node_uuids", _STRING...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

REQ_RESULT(val)

source code 

Checks if the given value is a list.

Decorators:
  • @WithDesc("List")
Overrides: REQ_RESULT

GetRequest(self, cfg)

source code 

Request an relocation of an instance

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

Parameters:
  • cfg - The configuration instance
Overrides: IARequestBase.GetRequest

ValidateResult(self, ia, result)

source code 

Validates the result of an relocation request.

Parameters:
  • ia - The IAllocator instance
  • result - The IAllocator run result
Raises:
Overrides: IARequestBase.ValidateResult

_NodesToGroups(node2group, groups, nodes)
Static Method

source code 

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

Parameters:
  • node2group (dict) - Map from node name to group UUID
  • groups (dict) - Group information
  • nodes (list) - Node names

Class Variable Details [hide private]

REQ_PARAMS

Value:
[_INST_UUID, ("relocate_from_node_uuids", _STRING_LIST),]