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)
Run an iallocator script.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Run(name, idata)
Static Method

source code 

Run an iallocator script.

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