package documentation

Logical units dealing with the cluster.

Module verify Logical units for cluster verification.

From __init__.py:

Class ClusterQuery No class docstring; 0/2 instance variable, 0/1 constant, 1/3 method documented
Class LUClusterActivateMasterIp Activate the master IP on the master node.
Class LUClusterConfigQuery Return configuration values.
Class LUClusterDeactivateMasterIp Deactivate the master IP on the master node.
Class LUClusterDestroy Logical unit for destroying the cluster.
Class LUClusterPostInit Logical unit for running hooks after cluster initialization.
Class LUClusterQuery Query cluster configuration.
Class LUClusterRedistConf Force the redistribution of cluster configuration.
Class LUClusterRename Rename the cluster.
Class LUClusterRenewCrypto Renew the cluster's crypto tokens.
Class LUClusterRepairDiskSizes Verifies the cluster disks sizes.
Class LUClusterSetParams Change the parameters of the cluster.
Function CheckCompressionTools Check whether the provided compression tools look like executables.
Function CheckFileBasedStoragePathVsEnabledDiskTemplates Checks whether the given file-based storage directory is acceptable.
Function CheckFileStoragePathVsEnabledDiskTemplates Checks whether the given file storage directory is acceptable.
Function CheckGlusterStoragePathVsEnabledDiskTemplates Checks whether the given gluster storage directory is acceptable.
Function CheckSharedFileStoragePathVsEnabledDiskTemplates Checks whether the given shared file storage directory is acceptable.
Function _ValidateNetmask Checks if a netmask is valid.
def _ValidateNetmask(cfg, netmask):

Checks if a netmask is valid.

Parameters
cfg:config.ConfigWritercluster configuration
netmask:intnetmask to be verified
Raises
errors.OpPrereqErrorif the validation fails
def CheckFileBasedStoragePathVsEnabledDiskTemplates(logging_warn_fn, file_storage_dir, enabled_disk_templates, file_disk_template):

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:functionfunction which accepts a string and logs it
file_storage_dir:stringthe directory to be used for file-based instances
enabled_disk_templates:list of stringthe list of enabled disk templates
file_disk_template:stringthe file-based disk template for which the path should be checked
def CheckFileStoragePathVsEnabledDiskTemplates(logging_warn_fn, file_storage_dir, enabled_disk_templates):

Checks whether the given file storage directory is acceptable.

See Also
CheckFileBasedStoragePathVsEnabledDiskTemplates
def CheckSharedFileStoragePathVsEnabledDiskTemplates(logging_warn_fn, file_storage_dir, enabled_disk_templates):

Checks whether the given shared file storage directory is acceptable.

See Also
CheckFileBasedStoragePathVsEnabledDiskTemplates
def CheckGlusterStoragePathVsEnabledDiskTemplates(logging_warn_fn, file_storage_dir, enabled_disk_templates):

Checks whether the given gluster storage directory is acceptable.

See Also
CheckFileBasedStoragePathVsEnabledDiskTemplates
def CheckCompressionTools(tools):

Check whether the provided compression tools look like executables.

Parameters
tools:list of stringThe tools provided as opcode input