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

Module iallocator

source code

Module implementing the iallocator code.

Classes [hide private]
  _AutoReqParam
Meta class for request definitions.
  IARequestBase
A generic IAllocator request object.
  IAReqInstanceAlloc
An instance allocation request.
  IAReqMultiInstanceAlloc
An multi instance allocation request.
  IAReqRelocate
A relocation request.
  IAReqNodeEvac
A node evacuation request.
  IAReqGroupChange
A group change request.
  IAllocator
IAllocator framework.
Variables [hide private]
  _STRING_LIST = ht.TListOf(ht.TString)
  _JOB_LIST = ht.TListOf(ht.TListOf(ht.TStrictDict(True, False, ...
  _NEVAC_MOVED = ht.TListOf(ht.TAnd(ht.TIsLength(3), ht.TItems([...
  _NEVAC_FAILED = ht.TListOf(ht.TAnd(ht.TIsLength(2), ht.TItems(...
  _NEVAC_RESULT = ht.TAnd(ht.TIsLength(3), ht.TItems([_NEVAC_MOV...
  _INST_NAME = "name", ht.TNonEmptyString
  _INST_UUID = "inst_uuid", ht.TNonEmptyString

Imports: compat, constants, errors, ht, outils, opcodes, rpc, serializer, utils, gmi, logging


Variables Details [hide private]

_JOB_LIST

Value:
ht.TListOf(ht.TListOf(ht.TStrictDict(True, False, {"OP_ID": ht.TElemOf\
([opcodes.OpInstanceFailover.OP_ID, opcodes.OpInstanceMigrate.OP_ID, o\
pcodes.OpInstanceReplaceDisks.OP_ID]),})))

_NEVAC_MOVED

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

_NEVAC_FAILED

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

_NEVAC_RESULT

Value:
ht.TAnd(ht.TIsLength(3), ht.TItems([_NEVAC_MOVED, _NEVAC_FAILED, _JOB_\
LIST]))