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]
 
_IsInstanceUserDown(cluster, instance, instance_info) source code
dict
GetInstanceConsole(cluster, instance, primary_node, node_group)
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, CheckOSImage, ShareAll, StartInstanceDisks, ShutdownInstanceDisks, ImageDisks, BuildInstanceHookEnvByObject, CheckInstanceBridgesExist, CheckNodeFreeMemory, UpdateMetadata, hv_base


Function Details [hide private]

GetInstanceConsole(cluster, instance, primary_node, node_group)

source code 

Returns console information for an instance.

Parameters:
Returns: dict