Trees | Indices | Help |
|
---|
|
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.
|
|||
_AutoOpParamSlots Meta class for opcode definitions. |
|||
BaseOpCode A simple serializable object. |
|||
OpCode Abstract OpCode. |
|||
OpClusterPostInit Post cluster initialization. |
|||
OpClusterDestroy Destroy the cluster. |
|||
OpClusterQuery Query cluster information. |
|||
OpClusterVerify Submits all jobs necessary to verify the cluster. |
|||
OpClusterVerifyConfig Verify the cluster config. |
|||
OpClusterVerifyGroup Run verify on a node group from the cluster. |
|||
OpClusterVerifyDisks Verify the cluster disks. |
|||
OpGroupVerifyDisks Verifies the status of all disks in a node group. |
|||
OpClusterRepairDiskSizes Verify the disk sizes of the instances and fixes configuration mimatches. |
|||
OpClusterConfigQuery Query cluster configuration values. |
|||
OpClusterRename Rename the cluster. |
|||
OpClusterSetParams Change the parameters of the cluster. |
|||
OpClusterRedistConf Force a full push of the cluster configuration. |
|||
OpQuery Query for resources/items. |
|||
OpQueryFields Query for available resource/item fields. |
|||
OpOobCommand Interact with OOB. |
|||
OpNodeRemove Remove a node. |
|||
OpNodeAdd Add a node to the cluster. |
|||
OpNodeQuery Compute the list of nodes. |
|||
OpNodeQueryvols Get list of volumes on node. |
|||
OpNodeQueryStorage Get information on storage for node(s). |
|||
OpNodeModifyStorage Modifies the properies of a storage unit |
|||
OpRepairNodeStorage Repairs the volume group on a node. |
|||
OpNodeSetParams Change the parameters of a node. |
|||
OpNodePowercycle Tries to powercycle a node. |
|||
OpNodeMigrate Migrate all instances from a node. |
|||
OpNodeEvacuate Evacuate instances off a number of nodes. |
|||
OpInstanceCreate Create an instance. |
|||
OpInstanceReinstall Reinstall an instance's OS. |
|||
OpInstanceRemove Remove an instance. |
|||
OpInstanceRename Rename an instance. |
|||
OpInstanceStartup Startup an instance. |
|||
OpInstanceShutdown Shutdown an instance. |
|||
OpInstanceReboot Reboot an instance. |
|||
OpInstanceReplaceDisks Replace the disks of an instance. |
|||
OpInstanceFailover Failover an instance. |
|||
OpInstanceMigrate Migrate an instance. |
|||
OpInstanceMove Move an instance. |
|||
OpInstanceConsole Connect to an instance's console. |
|||
OpInstanceActivateDisks Activate an instance's disks. |
|||
OpInstanceDeactivateDisks Deactivate an instance's disks. |
|||
OpInstanceRecreateDisks Deactivate an instance's disks. |
|||
OpInstanceQuery Compute the list of instances. |
|||
OpInstanceQueryData Compute the run-time status of instances. |
|||
OpInstanceSetParams Change the parameters of an instance. |
|||
OpInstanceGrowDisk Grow a disk of an instance. |
|||
OpInstanceChangeGroup Moves an instance to another node group. |
|||
OpGroupAdd Add a node group to the cluster. |
|||
OpGroupAssignNodes Assign nodes to a node group. |
|||
OpGroupQuery Compute the list of node groups. |
|||
OpGroupSetParams Change the parameters of a node group. |
|||
OpGroupRemove Remove a node group from the cluster. |
|||
OpGroupRename Rename a node group in the cluster. |
|||
OpGroupEvacuate Evacuate a node group in the cluster. |
|||
OpOsDiagnose Compute the list of guest operating systems. |
|||
OpBackupQuery Compute the list of exported images. |
|||
OpBackupPrepare Prepares an instance export. |
|||
OpBackupExport Export an instance. |
|||
OpBackupRemove Remove an instance's export. |
|||
OpTagsGet Returns the tags of the given object. |
|||
OpTagsSearch Searches the tags in the cluster for a given pattern. |
|||
OpTagsSet Add a list of tags on a given object. |
|||
OpTagsDel Remove a list of tags from a given object. |
|||
OpTestDelay Sleeps for a configured amount of time. |
|||
OpTestAllocator Allocator framework testing. |
|||
OpTestJqueue Utility opcode to test some aspects of the job queue. |
|||
OpTestDummy Utility opcode used by unittests. |
|
|||
string |
|
||
|
|||
|
|||
|
|||
|
|||
callable |
|
||
|
|
|||
_POutputFields = "output_fields", ht.NoDefault, ht.TListOf(ht. output fields for a query operation |
|||
_PShutdownTimeout = "shutdown_timeout", constants.DEFAULT_SHUT the shutdown timeout |
|||
_PForce = "force", False, ht.TBool, "Whether to force the oper the force parameter |
|||
_PInstanceName = "instance_name", ht.NoDefault, ht.TNonEmptySt a required instance name (for single-instance LUs) |
|||
_PIgnoreOfflineNodes = "ignore_offline_nodes", False, ht.TBool Whether to ignore offline nodes |
|||
_PNodeName = "node_name", ht.NoDefault, ht.TNonEmptyString, "N a required node name (for single-node LUs) |
|||
_PGroupName = "group_name", ht.NoDefault, ht.TNonEmptyString, a required node group name (for single-group LUs) |
|||
_PMigrationMode = "mode", None, ht.TOr(ht.TNone, ht.TElemOf(co Migration type (live/non-live) |
|||
_PMigrationLive = "live", None, ht.TMaybeBool, "Legacy setting Obsolete 'live' migration mode (boolean) |
|||
_PTagKind = "kind", ht.NoDefault, ht.TElemOf(constants.VALID_T Tag type |
|||
_PTags = "tags", ht.NoDefault, ht.TListOf(ht.TNonEmptyString), List of tag strings |
|||
_PForceVariant = "force_variant", False, ht.TBool, "Whether to
|
|||
_PWaitForSync = "wait_for_sync", True, ht.TBool, "Whether to w
|
|||
_PIgnoreConsistency = "ignore_consistency", False, ht.TBool, "
|
|||
_PStorageName = "name", ht.NoDefault, ht.TMaybeString, "Storag
|
|||
_PUseLocking = "use_locking", False, ht.TBool, "Whether to use
|
|||
_PNameCheck = "name_check", True, ht.TBool, "Whether to check
|
|||
_PNodeGroupAllocPolicy = "alloc_policy", None, ht.TOr(ht.TNone
|
|||
_PGroupNodeParams = "ndparams", None, ht.TMaybeDict, "Default
|
|||
_PQueryWhat = "what", ht.NoDefault, ht.TElemOf(constants.QR_VI
|
|||
_PEarlyRelease = "early_release", False, ht.TBool, "Whether to
|
|||
_PIpCheckDoc = "Whether to ensure instance's IP address is ina
|
|||
_PNoRemember = "no_remember", False, ht.TBool, "Do not remembe Do not remember instance state changes |
|||
_PMigrationTargetNode = "target_node", None, ht.TMaybeString, Target node for instance migration/failover |
|||
_PStartupPaused = "startup_paused", False, ht.TBool, "Pause in
|
|||
_PVerbose = "verbose", False, ht.TBool, "Verbose mode"
|
|||
_PDebugSimulateErrors = "debug_simulate_errors", False, ht.TBo
|
|||
_PErrorCodes = "error_codes", False, ht.TBool, "Error codes"
|
|||
_PSkipChecks = "skip_checks", ht.EmptyList, ht.TListOf(ht.TEle
|
|||
_OPID_RE = re.compile("([a-z])([A-Z])") OP_ID conversion regular expression |
|||
_TestClusterOsList = ht.TOr(ht.TNone, ht.TListOf(ht.TAnd(ht.TL Utility function for OpClusterSetParams |
|||
_TestNicDef = ht.TDictOf(ht.TElemOf(constants.INIC_PARAMS), ht Utility function for testing NIC definitions |
|||
_TSetParamsResultItemItems = [ht.Comment("name of changed para
|
|||
_TSetParamsResult = ht.TListOf(ht.TAnd(ht.TIsLength(len(_TSetP
|
|||
_SUMMARY_PREFIX = {"CLUSTER_": "C_", "GROUP_": "G_", "NODE_":
|
|||
DEPEND_ATTR = "depends" Attribute name for dependencies |
|||
COMMENT_ATTR = "comment" Attribute name for comment |
|||
_CheckDiskTemplate = ht.TAnd(ht.TElemOf(constants.DISK_TEMPLAT
|
|||
_PStorageType = "storage_type", ht.NoDefault, _CheckStorageTyp Storage type parameter |
|||
TNoRelativeJobDependencies = _BuildJobDepCheck(False)
|
|||
_TJobIdListItem = ht.TAnd(ht.TIsLength(2), ht.TItems([ht.Comme List of submission status and job ID as returned by SubmitManyJobs
|
|||
TJobIdList = ht.TListOf(_TJobIdListItem)
|
|||
TJobIdListOnly = ht.TStrictDict(True, True, {constants.JOB_IDS Result containing only list of submitted jobs |
|||
OP_MAPPING = dict((v.OP_ID, v) for v in _GetOpList())
|
Imports: logging, re, compat, constants, errors, ht
|
Convert an opcode class name to an OP_ID.
|
Checks that file storage is enabled. While it doesn't really fit into this module, utils was deemed too large of a dependency to be imported for just one or two functions.
|
Checks that shared file storage is enabled. While it doesn't really fit into this module, utils was deemed too large of a dependency to be imported for just one or two functions.
|
Ensures file storage is enabled if used.
|
Builds check for job dependencies (DEPEND_ATTR).
|
Returns list of all defined opcodes. Does not eliminate duplicates by |
|
_POutputFieldsoutput fields for a query operation
|
_PShutdownTimeoutthe shutdown timeout
|
_PForcethe force parameter
|
_PInstanceNamea required instance name (for single-instance LUs)
|
_PIgnoreOfflineNodesWhether to ignore offline nodes
|
_PNodeNamea required node name (for single-node LUs)
|
_PGroupNamea required node group name (for single-group LUs)
|
_PMigrationModeMigration type (live/non-live)
|
_PMigrationLiveObsolete 'live' migration mode (boolean)
|
_PTagKindTag type
|
_PTagsList of tag strings
|
_PForceVariant
|
_PWaitForSync
|
_PIgnoreConsistency
|
_PStorageName
|
_PUseLocking
|
_PNameCheck
|
_PNodeGroupAllocPolicy
|
_PGroupNodeParams
|
_PQueryWhat
|
_PEarlyRelease
|
_PIpCheckDoc
|
_PNoRememberDo not remember instance state changes
|
_PMigrationTargetNodeTarget node for instance migration/failover
|
_PStartupPaused
|
_PDebugSimulateErrors
|
_PSkipChecks
|
_TestClusterOsListUtility function for OpClusterSetParams
|
_TestNicDefUtility function for testing NIC definitions
|
_TSetParamsResultItemItems
|
_TSetParamsResult
|
_SUMMARY_PREFIX
|
_CheckDiskTemplate
|
_PStorageTypeStorage type parameter
|
_TJobIdListItemList of submission status and job ID as returned by
|
TJobIdListOnlyResult containing only list of submitted jobs
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 24 16:51:19 2012 | http://epydoc.sourceforge.net |