Package ganeti :: Module opcodes
[hide private]
[frames] | no frames]

Module opcodes

source code

OpCodes module

This module implements the data structures which define the cluster operations - the so-called opcodes.

Every operation which modifies the cluster state is expressed via opcodes.

Classes [hide private]
  BaseOpCode
A simple serializable object.
  OpCode
Abstract OpCode.
  OpDestroyCluster
Destroy the cluster.
  OpQueryClusterInfo
Query cluster information.
  OpVerifyCluster
Verify the cluster state.
  OpVerifyDisks
Verify the cluster disks.
  OpRepairDiskSizes
Verify the disk sizes of the instances and fixes configuration mimatches.
  OpQueryConfigValues
Query cluster configuration values.
  OpRenameCluster
Rename the cluster.
  OpSetClusterParams
Change the parameters of the cluster.
  OpRedistributeConfig
Force a full push of the cluster configuration.
  OpRemoveNode
Remove a node.
  OpAddNode
Add a node to the cluster.
  OpQueryNodes
Compute the list of nodes.
  OpQueryNodeVolumes
Get list of volumes on node.
  OpSetNodeParams
Change the parameters of a node.
  OpCreateInstance
Create an instance.
  OpReinstallInstance
Reinstall an instance's OS.
  OpRemoveInstance
Remove an instance.
  OpRenameInstance
Rename an instance.
  OpStartupInstance
Startup an instance.
  OpShutdownInstance
Shutdown an instance.
  OpRebootInstance
Reboot an instance.
  OpReplaceDisks
Replace the disks of an instance.
  OpFailoverInstance
Failover an instance.
  OpMigrateInstance
Migrate an instance.
  OpConnectConsole
Connect to an instance's console.
  OpActivateInstanceDisks
Activate an instance's disks.
  OpDeactivateInstanceDisks
Deactivate an instance's disks.
  OpQueryInstances
Compute the list of instances.
  OpQueryInstanceData
Compute the run-time status of instances.
  OpSetInstanceParams
Change the parameters of an instance.
  OpGrowDisk
Grow a disk of an instance.
  OpDiagnoseOS
Compute the list of guest operating systems.
  OpQueryExports
Compute the list of exported images.
  OpExportInstance
Export an instance.
  OpRemoveExport
Remove an instance's export.
  OpGetTags
Returns the tags of the given object.
  OpSearchTags
Searches the tags in the cluster for a given pattern.
  OpAddTags
Add a list of tags on a given object.
  OpDelTags
Remove a list of tags from a given object.
  OpTestDelay
Sleeps for a configured amount of time.
  OpTestAllocator
Allocator framework testing.
Variables [hide private]
  OP_MAPPING = dict([(v.OP_ID, v) for v in globals().values() if...
Variables Details [hide private]

OP_MAPPING

Value:
dict([(v.OP_ID, v) for v in globals().values() if(isinstance(v, type) \
and issubclass(v, OpCode) and hasattr(v, "OP_ID"))])