Trees | Indices | Help |
|
---|
|
Utility function mainly, but not only used by instance LU's.
|
|||
dict |
|
||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
list of file paths |
|
||
boolean |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
integer |
|
||
|
|||
|
|||
NoneType |
|
||
NoneType |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
string |
|
||
list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_TApplyContModsCbChanges = ht.TMaybeListOf(ht.TAnd(ht.TIsLengt Type description for changes as returned by ApplyContainerMods's callbacks |
Imports: logging, os, constants, errors, ht, locking, iallocator, network, netutils, objects, pathutils, utils, AnnotateDiskParams, ComputeIPolicyInstanceViolation, CheckDiskTemplateEnabled, ComputeIPolicySpecViolation
|
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.
|
Ensure that a given node is not drained.
|
Ensure that a given node is vm capable.
|
Returns an iterable of all storage paths to be removed. A storage path is removed if no disks are contained in it anymore.
|
Remove all or a subset of 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. This function is also used by the disk template conversion mechanism to remove the old block devices of the instance. Since the instance has changed its template at the time we remove the original disks, we must specify the template of the disks we are about to remove as an argument.
|
Build a tupple of nic information.
|
Build a list of nic information tuples. This list is suitable to be passed to _BuildInstanceHookEnv or as a return value in LUInstanceQueryData.
|
Makes a copy of a list of lock names. Handles locking.ALL_SET correctly. |
Releases locks owned by an LU.
|
Compute if instance meets the specs of the new target group.
|
Checks that the target node is correct in terms of instance policy.
|
Checks if a node has enough free memory. This function checks 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 raises an OpPrereqError exception.
|
Updates instance metadata on the metadata daemon on the instance's primary node. If the daemon isn't available (not compiled), do nothing. In case the RPC fails, this function simply issues a warning and proceeds normally.
|
Checks if the provided compression tool is allowed to be used.
|
Helper method to create hooks env related to disk's logical_id
|
Helper method to create disk's hooks env
|
Raises an error if an instance with the given name exists already.
|
In case of conflicting IP address raise error.
|
Compute if instance specs meets the specs of ipolicy.
See Also: ComputeIPolicySpecViolation |
Compute the name of the instance NIC used by instance communication. With instance communication, a new NIC is added to the instance. This NIC has a special name that identities it as being part of instance communication, and not just a normal NIC. This function generates the name of the NIC based on a prefix and the instance name
|
Prepares a list of container modifications by adding a private data field.
|
Applies descriptions in
|
Return the item refered by the identifier.
|
Check if the identifier represents a valid container index and return it. Used in "add" and "attach" actions.
|
Insert an item to the provided index of a container. Used in "add" and "attach" actions.
|
Checks if nodes have enough physical CPUs This function checks if all given nodes have the needed number of physical CPUs. In case any node has less CPUs or we cannot get the information from the node, this function raises an OpPrereqError exception.
|
Ensures that a given hostname resolves to a 'sane' name. The given name is required to be a prefix of the resolved hostname, to prevent accidental mismatches.
|
Wrapper around IAReqInstanceAlloc.
|
Computes the full beparams.
|
Computes the nics.
|
|
_TApplyContModsCbChangesType description for changes as returned by ApplyContainerMods's callbacks
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 12 13:38:34 2016 | http://epydoc.sourceforge.net |