Package ganeti :: Module backend :: Class IAllocatorRunner
[hide private]
[frames] | no frames]

Class IAllocatorRunner

source code


IAllocator runner.

This class is instantiated on the node side (ganeti-noded) and not on the master side.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
tuple
Run(name, idata, ial_params)
Run an iallocator script.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Run(name, idata, ial_params)
Static Method

source code 

Run an iallocator script.

Parameters:
  • name (str) - the iallocator script name
  • idata (str) - the allocator input data
  • ial_params (list) - the iallocator parameters
Returns: tuple
two element tuple of:
  • status
  • either error message or stdout of allocator (for success)