| Trees | Indices | Help |
|
|---|
|
|
Module implementing the master-side code.
|
|||
|
LogicalUnit Logical Unit base class. |
|||
|
NoHooksLU Simple LU which runs no hooks. |
|||
|
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). |
|||
|
LUAddNode Logical unit for adding node to the cluster. |
|||
|
LUSetNodeParams Modifies the parameters of 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. |
|||
|
LURenameInstance Rename an instance. |
|||
|
LURemoveInstance Remove an instance. |
|||
|
LUQueryInstances Logical unit for querying instances. |
|||
|
LUFailoverInstance Failover an instance. |
|||
|
LUMigrateInstance Migrate an instance. |
|||
|
LUCreateInstance Create an instance. |
|||
|
LUConnectConsole Connect to an instance's console. |
|||
|
LUReplaceDisks Replace the disks of an instance. |
|||
|
LUGrowDisk Grow a disk of an instance. |
|||
|
LUQueryInstanceData Query runtime instance data. |
|||
|
LUSetInstanceParams Modifies an instances's parameters. |
|||
|
LUQueryExports Query the exports list |
|||
|
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. |
|||
|
IAllocator IAllocator framework. |
|||
|
LUTestAllocator Run allocator tests. |
|||
|
|||
| list |
|
||
| list |
|
||
|
|||
|
|||
|
|||
|
|||
| dict |
|
||
| dict |
|
||
|
|||
|
|||
| boolean |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| boolean |
|
||
| boolean |
|
||
|
|||
|
|||
Imports: os, time, re, platform, logging, copy, ssh, utils, errors, hypervisor, locking, constants, objects, serializer, ssconf
|
|||
Returns list of checked and expanded node names.
|
Returns list of checked and expanded instance names.
|
Checks whether all selected fields are valid.
|
Validates boolean opcode parameters. This will ensure that an opcode parameter is either a boolean value, or None (but that it always exists). |
Ensure that a given node is online.
|
Ensure that a given node is not drained.
|
Builds instance related env variables for hooks This builds the hook environment from individual variables.
|
Builds instance related env variables for hooks from an object.
|
Check if the given disk or its children are lvm-based.
|
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. |
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.
|
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.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 3 12:34:35 2010 | http://epydoc.sourceforge.net |