Package ganeti :: Package cmdlib :: Module instance_operation
[hide private]
[frames] | no frames]

Module instance_operation

source code

Logical units dealing with instance operations (start/stop/...).

Those operations have in common that they affect the operating system in a running instance directly.

Classes [hide private]
  LUInstanceStartup
Starts an instance.
  LUInstanceShutdown
Shutdown an instance.
  LUInstanceReinstall
Reinstall an instance.
  LUInstanceReboot
Reboot an instance.
  LUInstanceConsole
Connect to an instance's console.
Functions [hide private]
dict
GetInstanceConsole(cluster, instance, primary_node)
Returns console information for an instance.
source code

Imports: logging, constants, errors, hypervisor, locking, objects, utils, LogicalUnit, NoHooksLU, INSTANCE_ONLINE, INSTANCE_DOWN, CheckHVParams, CheckInstanceState, CheckNodeOnline, GetUpdatedParams, CheckOSParams, ShareAll, StartInstanceDisks, ShutdownInstanceDisks, BuildInstanceHookEnvByObject, CheckInstanceBridgesExist, CheckNodeFreeMemory, CheckNodeHasOS


Function Details [hide private]

GetInstanceConsole(cluster, instance, primary_node)

source code 

Returns console information for an instance.

Parameters:
Returns: dict