Trees | Indices | Help |
|
---|
|
Common functions used by multiple logical units.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
tuple of lists |
|
||
tuple of lists |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
string or NoneType |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
list |
|
||
string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
dict; tuple of (node uuid, volume name) as key, objects.Instance object as value |
|
||
|
|||
bool |
|
||
bool |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
string |
|
||
ganeti.opcodes.OpCode |
|
||
ganeti.opcodes.OpCode |
|
||
int |
|
||
|
|||
|
|
|||
INSTANCE_DOWN = [constants.ADMINST_DOWN]
|
|||
INSTANCE_ONLINE = [constants.ADMINST_DOWN, constants.ADMINST_UP]
|
|||
INSTANCE_NOT_RUNNING = [constants.ADMINST_DOWN, constants.ADMI
|
Imports: copy, math, os, urllib2, compat, constants, errors, hypervisor, locking, objects, opcodes, pathutils, rpc, Private, 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.
|
Checks if a given image description is either a valid file path or a URL.
|
Checks if the OS image in the OS parameters of an opcode is valid. This function can also be used in LUs as they carry an opcode.
|
Hypervisor parameter validation. This function abstracts the hypervisor parameter validation to be used in both instance create and instance modify.
|
Adjust the candidate pool after node operations.
|
Computes if value is in the desired range.
|
Verifies ipolicy against provided specs.
|
Verifies ipolicy against provided disk sizes. No other specs except the disk sizes, the number of disks and the disk template are checked.
|
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.
|
Given an instance object, checks if the instance is running. This function asks the backend whether the instance is running and user shutdown instances are considered not to be running.
|
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.
|
Add the node's client SSL certificate digest to the candidate certs.
|
Removes the node's certificate from the candidate certificates list.
|
Get the client SSL certificate digest for the node.
|
Create an OpCode that adds the instance communication network. This OpCode contains the configuration necessary for the instance communication network.
|
Create an OpCode that connects a group to the instance communication network. This OpCode contains the configuration necessary for the instance communication network.
|
Determines the size of the specified image.
|
Ensure KVM daemon is running on nodes with KVM instances. If user shutdown is enabled in the cluster:
If user shutdown is disabled in the cluster:
Issues a warning for each failed RPC call.
|
|
INSTANCE_NOT_RUNNING
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 22 11:13:08 2016 | http://epydoc.sourceforge.net |