class documentation

class IAllocatorRunner(object):

View In Hierarchy

IAllocator runner.

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

Static Method Run Run an iallocator script.
@staticmethod
def Run(name, idata, ial_params):

Run an iallocator script.

Parameters
name:strthe iallocator script name
idata:strthe allocator input data
ial_params:listthe iallocator parameters
Returns
tuple

two element tuple of:

  • status
  • either error message or stdout of allocator (for success)