Module node
source code
Logical units dealing with nodes.
|
_DecideSelfPromotion(lu,
exceptions=None)
Decide whether I should promote myself as a master candidate. |
source code
|
|
|
|
|
|
|
_GetNodePrimaryInstances(cfg,
node_uuid)
Returns primary instances on a node. |
source code
|
|
|
_GetNodeSecondaryInstances(cfg,
node_uuid)
Returns secondary instances on a node. |
source code
|
|
|
_GetNodeInstances(cfg,
node_uuid)
Returns a list of all primary and secondary instances on a node. |
source code
|
|
|
_GetStorageTypeArgs(cfg,
storage_type)
Returns the arguments for a storage type. |
source code
|
|
|
|
Imports:
logging,
operator,
constants,
errors,
locking,
netutils,
objects,
opcodes,
rpc,
utils,
iallocator,
LogicalUnit,
NoHooksLU,
ResultWithJobs,
CheckParamsNotGlobal,
MergeAndVerifyHvState,
MergeAndVerifyDiskState,
IsExclusiveStorageEnabledNode,
CheckNodePVs,
RedistributeAncillaryFiles,
ExpandNodeUuidAndName,
ShareAll,
SupportsOob,
CheckInstanceState,
INSTANCE_DOWN,
GetUpdatedParams,
AdjustCandidatePool,
CheckIAllocatorOrNode,
LoadNodeEvacResult,
GetWantedNodes,
MapInstanceLvsToNodes,
RunPostHook,
FindFaultyInstanceDisks,
CheckStorageTypeEnabled,
GetClientCertDigest,
AddNodeCertToCandidateCerts,
RemoveNodeCertFromCandidateCerts,
EnsureKvmdOnNodes,
WarnAboutFailedSshUpdates,
AddMasterCandidateSshKey
_CheckNodeHasSecondaryIP(lu,
node,
secondary_ip,
prereq)
| source code
|
Ensure that a node has the given secondary ip.
- Parameters:
lu (LogicalUnit) - the LU on behalf of which we make the check
node (objects.Node) - the node to check
secondary_ip (string) - the ip to check
prereq (boolean) - whether to throw a prerequisite or an execute error
- Raises:
|
Checks whether all selected fields are valid according to fields.
- Parameters:
|