Utility function mainly, but not only used by instance LU's.
dict
|
BuildInstanceHookEnv(name,
primary_node_name,
secondary_node_names,
os_type,
status,
minmem,
maxmem,
vcpus,
nics,
disk_template,
disks,
bep,
hvp,
hypervisor_name,
tags)
Builds instance related env variables for hooks |
source code
|
|
dict
|
|
|
GetClusterDomainSecret()
Reads the cluster domain secret. |
source code
|
|
|
|
|
|
|
RemoveInstance(lu,
feedback_fn,
instance,
ignore_failures)
Utility function to remove an instance. |
source code
|
|
boolean
|
RemoveDisks(lu,
instance,
target_node_uuid=None,
ignore_failures=False)
Remove all disks for an instance. |
source code
|
|
|
|
|
|
|
|
|
|
|
_ComputeIPolicyNodeViolation(ipolicy,
instance,
current_group,
target_group,
cfg,
_compute_fn=ComputeIPolicyInstanceViolation)
Compute if instance meets the specs of the new target group. |
source code
|
|
|
CheckTargetNodeIPolicy(lu,
ipolicy,
instance,
node,
cfg,
ignore=False,
_compute_fn=_ComputeIPolicyNodeViolation)
Checks that the target node is correct in terms of instance policy. |
source code
|
|
|
GetInstanceInfoText(instance)
Compute that text that should be added to the disk's metadata. |
source code
|
|
integer
|
|
|
CheckInstanceBridgesExist(lu,
instance,
node_uuid=None)
Check that the brigdes needed by an instance exist. |
source code
|
|
|
CheckNicsBridgesExist(lu,
nics,
node_uuid)
Check that the brigdes needed by a list of nics exist. |
source code
|
|
NoneType
|
UpdateMetadata(feedback_fn,
rpc,
instance,
osparams_public=None,
osparams_private=None,
osparams_secret=None)
Updates instance metadata on the metadata daemon on the instance's
primary node. |
source code
|
|
NoneType
|
|
|
|