Trees | Indices | Help |
|
---|
|
Common functions used by multiple logical units.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
tuple of lists |
|
||
tuple of lists |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
list |
|
||
string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
dict; tuple of (node uuid, volume name) as key, objects.Instance object as value |
|
||
|
|||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
INSTANCE_DOWN = [constants.ADMINST_DOWN]
|
|||
INSTANCE_ONLINE = [constants.ADMINST_DOWN, constants.ADMINST_UP]
|
|||
INSTANCE_NOT_RUNNING = [constants.ADMINST_DOWN, constants.ADMI
|
|||
CAN_CHANGE_INSTANCE_OFFLINE = frozenset(INSTANCE_DOWN) | froze Instance status in which an instance can be marked as offline/online |
Imports: copy, os, compat, constants, errors, hypervisor, locking, objects, opcodes, pathutils, rpc, ssconf, utils
|
Expand an item name.
|
Expand a short node name into the node UUID and full name.
|
Checks if the instances in a node group are still correct.
|
Returns list of checked and expanded node names.
|
Returns list of checked and expanded instance names.
|
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. |
Compute files external to Ganeti which need to be consistent.
|
Combines the hv state from an opcode with the one of the object
|
Combines the disk state from an opcode with the one of the object
|
OS parameters validation.
|
Hypervisor parameter validation. This function abstract the hypervisor parameter validation to be used in both instance create and instance modify.
|
Computes if value is in the desired range.
|
Verifies ipolicy against provided specs.
|
Compute if instance meets the specs of ipolicy.
See Also: ComputeIPolicySpecViolation |
Computes a set of instances who violates given ipolicy.
|
Computes a set of any instances that would violate the new ipolicy.
|
Return the new version of a parameter dictionary.
|
Return the new version of an instance policy.
|
Little helper wrapper to the rpc annotation method.
|
Tells if node supports OOB.
|
Updates and verifies a dict with sub dicts of the same type.
|
Filters out non-vm_capable nodes from a list.
|
Decides on which iallocator to use.
|
Checks if node groups for locked instances are still correct.
|
Checks if the owned node groups are still correct for an instance.
|
Unpacks the result of change-group and node-evacuate iallocator requests. Iallocator modes constants.IALLOCATOR_MODE_NODE_EVAC and constants.IALLOCATOR_MODE_CHG_GROUP.
|
Creates a map from (node, volume) to instance name.
|
Make sure that none of the given paramters is global. If a global parameter is found, an errors.OpPrereqError exception is raised. This is used to avoid setting global parameters for individual nodes.
|
Whether exclusive_storage is in effect for the given node.
|
Ensure that an instance is in one of the required states.
|
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, or the iallocator is constants.DEFAULT_IALLOCATOR_SHORTCUT, then the LU's opcode's iallocator slot is filled with the cluster-wide default iallocator.
|
Ensure that a given node is online.
|
Helper function to check if a disk template is enabled.
|
Helper function to check if a storage type is enabled.
|
Checks ipolicy disk templates against enabled disk tempaltes.
|
Checks if the access parameter is legal.
See Also: CheckDiskAccessModeConsistency for cluster consistency checks. |
Checks if the access param is consistent with the cluster configuration.
Note: requires a configuration lock to run. |
Checks if an hypervisor can read a disk template with given mode.
|
|
INSTANCE_NOT_RUNNING
|
CAN_CHANGE_INSTANCE_OFFLINEInstance status in which an instance can be marked as offline/online
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jan 7 16:23:25 2016 | http://epydoc.sourceforge.net |