Trees | Indices | Help |
|
---|
|
Module implementing the master-side code.
|
|||
LogicalUnit Logical Unit base class. |
|||
NoHooksLU Simple LU which runs no hooks. |
|||
Tasklet Tasklet base class. |
|||
LUPostInitCluster Logical unit for running hooks after cluster initialization. |
|||
LUDestroyCluster Logical unit for destroying the cluster. |
|||
LUVerifyCluster Verifies the cluster status. |
|||
LUVerifyDisks Verifies the cluster disks status. |
|||
LURepairDiskSizes Verifies the cluster disks sizes. |
|||
LURenameCluster Rename the cluster. |
|||
LUSetClusterParams Change the parameters of the cluster. |
|||
LURedistributeConfig Force the redistribution of cluster configuration. |
|||
LUDiagnoseOS Logical unit for OS diagnose/query. |
|||
LURemoveNode Logical unit for removing a node. |
|||
LUQueryNodes Logical unit for querying nodes. |
|||
LUQueryNodeVolumes Logical unit for getting volumes on node(s). |
|||
LUQueryNodeStorage Logical unit for getting information on storage units on node(s). |
|||
LUModifyNodeStorage Logical unit for modifying a storage volume on a node. |
|||
LUAddNode Logical unit for adding node to the cluster. |
|||
LUSetNodeParams Modifies the parameters of a node. |
|||
LUPowercycleNode Powercycles a node. |
|||
LUQueryClusterInfo Query cluster configuration. |
|||
LUQueryConfigValues Return configuration values. |
|||
LUActivateInstanceDisks Bring up an instance's disks. |
|||
LUDeactivateInstanceDisks Shutdown an instance's disks. |
|||
LUStartupInstance Starts an instance. |
|||
LURebootInstance Reboot an instance. |
|||
LUShutdownInstance Shutdown an instance. |
|||
LUReinstallInstance Reinstall an instance. |
|||
LURecreateInstanceDisks Recreate an instance's missing disks. |
|||
LURenameInstance Rename an instance. |
|||
LURemoveInstance Remove an instance. |
|||
LUQueryInstances Logical unit for querying instances. |
|||
LUFailoverInstance Failover an instance. |
|||
LUMigrateInstance Migrate an instance. |
|||
LUMoveInstance Move an instance by data-copying. |
|||
LUMigrateNode Migrate all instances from a node. |
|||
TLMigrateInstance Tasklet class for instance migration. |
|||
LUCreateInstance Create an instance. |
|||
LUConnectConsole Connect to an instance's console. |
|||
LUReplaceDisks Replace the disks of an instance. |
|||
TLReplaceDisks Replaces disks for an instance. |
|||
LURepairNodeStorage Repairs the volume group on a node. |
|||
LUNodeEvacuationStrategy Computes the node evacuation strategy. |
|||
LUGrowDisk Grow a disk of an instance. |
|||
LUQueryInstanceData Query runtime instance data. |
|||
LUSetInstanceParams Modifies an instances's parameters. |
|||
LUQueryExports Query the exports list |
|||
LUPrepareExport Prepares an instance for an export and returns useful information. |
|||
LUExportInstance Export an instance to an image in the cluster. |
|||
LURemoveExport Remove exports related to the named instance. |
|||
TagsLU Generic tags LU. |
|||
LUGetTags Returns the tags of a given object. |
|||
LUSearchTags Searches the tags for a given pattern. |
|||
LUAddTags Sets a tag on a given object. |
|||
LUDelTags Delete a list of tags from a given object. |
|||
LUTestDelay Sleep for a specified amount of time. |
|||
LUTestJobqueue Utility LU to test some aspects of the job queue. |
|||
IAllocator IAllocator framework. |
|||
LUTestAllocator Run allocator tests. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list |
|
||
list |
|
||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
dict |
|
||
|
|||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
list of objects.Disk |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
boolean |
|
||
boolean |
|
||
|
|||
|
|||
|
|
|||
_NoDefault = object() The without-default default value |
|||
_NoType = object() The no-type (value to complex to check it in the type system) |
|||
_TNonEmptyString = _TAnd(_TString, _TTrue) a non-empty string |
|||
_TMaybeString = _TOr(_TNonEmptyString, _TNone) a maybe non-empty string |
|||
_TMaybeBool = _TOr(_TBool, _TNone) a maybe boolean (bool or none) |
|||
_TPositiveInt = _TAnd(_TInt, lambda v: v >= 0) a positive integer |
|||
_TStrictPositiveInt = _TAnd(_TInt, lambda v: v > 0) a strictly positive integer |
|||
_POutputFields = "output_fields", _NoDefault, _TListOf(_TNonEm output fields for a query operation |
|||
_PShutdownTimeout = "shutdown_timeout", constants.DEFAULT_SHUT the shutdown timeout |
|||
_PForce = "force", False, _TBool the force parameter |
|||
_PInstanceName = "instance_name", _NoDefault, _TNonEmptyString a required instance name (for single-instance LUs) |
|||
_PNodeName = "node_name", _NoDefault, _TNonEmptyString a required node name (for single-node LUs) |
|||
_PMigrationMode = "mode", None, _TOr(_TNone, _TElemOf(constant the migration type (live/non-live) |
|||
_PMigrationLive = "live", None, _TMaybeBool the obsolete 'live' mode (boolean) |
Imports: os, time, re, platform, logging, copy, OpenSSL, socket, tempfile, shutil, ssh, utils, errors, hypervisor, locking, constants, objects, serializer, ssconf, uidpool, compat, masterd, netutils, ganeti
|
Returns list of checked and expanded node names.
|
Returns list of checked and expanded instance names.
|
Return the new version of a parameter dictionary.
|
Checks whether all selected fields are valid.
|
Validates that given hypervisor params are not global ones. This will ensure that instances don't get customised versions of global params. |
Ensure that a given node is online.
|
Ensure that a given node is not drained.
|
Ensure that a node supports a given OS.
|
Checks that file storage is enabled.
|
Expand an item name.
|
Builds instance related env variables for hooks This builds the hook environment from individual variables.
|
Build a list of nic information tuples. This list is suitable to be passed to _BuildInstanceHookEnv or as a return value in LUQueryInstanceData.
|
Builds instance related env variables for hooks from an object.
|
Check whether an OS name conforms to the os variants specification.
|
Check the sanity of iallocator and node arguments and use the cluster-wide iallocator if appropriate. Check that at most one of (iallocator, node) is specified. If none is specified, then the LU's opcode's iallocator slot is filled with the cluster-wide default iallocator.
|
Verifies a certificate for LUVerifyCluster.
|
Distribute additional files which are part of the cluster configuration. ConfigWriter takes care of distributing the config and ssconf files, but there are more files which should be distributed to all nodes. This function makes sure those are copied.
|
Check that mirrors are not degraded. The ldisk parameter, if True, will change the test from the is_degraded attribute (which represents overall non-ok status for the device(s)) to the ldisk (representing the local storage status). |
Prepare the block devices for an instance. This sets up the block devices on all nodes.
|
Shutdown block devices of an instance. This function checks if an instance is running, before calling _ShutdownInstanceDisks. |
Return the instance disks selected by the disks list
|
Shutdown block devices of an instance. This does the shutdown on all nodes of the instance. If the ignore_primary is false, errors on the primary node are ignored. |
Checks if a node has enough free memory. This function check if a given node has the needed amount of free memory. In case the node has less memory or we cannot get the information from the node, this function raise an OpPrereqError exception.
|
Checks if nodes have enough free disk space in the default VG. This function check if all given nodes have the needed amount of free disk. In case any node has less disk or we cannot get the information from the node, this function raise an OpPrereqError exception.
|
Create a tree of block devices on a given node. If this device type has to be created on secondaries, create it and all its children. If not, just recurse to children keeping the same 'force' value.
|
Create a single block device on a given node. This will not recurse over children of the device, so they must be created in advance.
|
Generate a suitable LV name. This will generate a logical volume name for the given instance. |
Create all disks for an instance. This abstracts away some work from AddInstance.
|
Remove all disks for an instance. This abstracts away some work from `AddInstance()` and `RemoveInstance()`. Note that in case some of the devices couldn't be removed, the removal will continue with the other ones (compare with `_CreateDisks()`).
|
Hypervisor parameter validation. This function abstract the hypervisor parameter validation to be used in both instance create and instance modify.
|
OS parameters validation.
|
|
_POutputFieldsoutput fields for a query operation
|
_PShutdownTimeoutthe shutdown timeout
|
_PMigrationModethe migration type (live/non-live)
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Dec 9 15:55:22 2010 | http://epydoc.sourceforge.net |