Package cluster
source code
Logical units dealing with the cluster.
Imports:
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,
CheckIpolicyVsDiskTemplates,
CheckDiskAccessModeValidity,
GetClientCertDigest,
AddInstanceCommunicationNetworkOp,
ConnectInstanceCommunicationNetworkOp,
CheckImageValidity,
CheckDiskAccessModeConsistency,
EnsureKvmdOnNodes,
ganeti
Checks if a netmask is valid.
- Parameters:
- Raises:
|
CheckFileBasedStoragePathVsEnabledDiskTemplates(logging_warn_fn,
file_storage_dir,
enabled_disk_templates,
file_disk_template)
| source code
|
Checks whether the given file-based storage directory is
acceptable.
Note: This function is public, because it is also used in
bootstrap.py.
- Parameters:
logging_warn_fn (function) - function which accepts a string and logs it
file_storage_dir (string) - the directory to be used for file-based instances
enabled_disk_templates (list of string) - the list of enabled disk templates
file_disk_template (string) - the file-based disk template for which the path should be checked
|
CheckFileStoragePathVsEnabledDiskTemplates(logging_warn_fn,
file_storage_dir,
enabled_disk_templates)
| source code
|
Checks whether the given file storage directory is acceptable.
See Also:
CheckFileBasedStoragePathVsEnabledDiskTemplates
|
CheckSharedFileStoragePathVsEnabledDiskTemplates(logging_warn_fn,
file_storage_dir,
enabled_disk_templates)
| source code
|
Checks whether the given shared file storage directory is
acceptable.
See Also:
CheckFileBasedStoragePathVsEnabledDiskTemplates
|
CheckGlusterStoragePathVsEnabledDiskTemplates(logging_warn_fn,
file_storage_dir,
enabled_disk_templates)
| source code
|
Checks whether the given gluster storage directory is acceptable.
See Also:
CheckFileBasedStoragePathVsEnabledDiskTemplates
|
Check whether the provided compression tools look like
executables.
- Parameters:
tools (list of string) - The tools provided as opcode input
|