Module cluster
source code
Logical units dealing with the cluster.
|
|
|
|
list of (origin, hypervisor, parameters)
|
|
Imports:
OpenSSL,
copy,
itertools,
logging,
operator,
os,
re,
time,
compat,
constants,
errors,
hypervisor,
locking,
masterd,
netutils,
objects,
opcodes,
pathutils,
query,
rpc,
runtime,
ssh,
uidpool,
utils,
vcluster,
NoHooksLU,
QueryBase,
LogicalUnit,
ResultWithJobs,
ShareAll,
RunPostHook,
ComputeAncillaryFiles,
RedistributeAncillaryFiles,
UploadHelper,
GetWantedInstances,
MergeAndVerifyHvState,
MergeAndVerifyDiskState,
GetUpdatedIPolicy,
ComputeNewInstanceViolations,
GetUpdatedParams,
CheckOSParams,
CheckHVParams,
AdjustCandidatePool,
CheckNodePVs,
ComputeIPolicyInstanceViolation,
AnnotateDiskParams,
SupportsOob,
ganeti
Checks if a netmask is valid.
- Parameters:
cfg (config.ConfigWriter) - The cluster configuration
netmask (int) - the netmask to be verified
- Raises:
|
_GetAllHypervisorParameters(cluster,
instances)
| source code
|
Compute the set of all hypervisor parameters.
- Parameters:
- Returns: list of (origin, hypervisor, parameters)
- a list with all parameters found, indicating the hypervisor they
apply to, and the origin (can be "cluster", "os
X", or "instance Y")
|