Functions to bootstrap a new cluster.
|
|
|
GenerateClusterCrypto(new_cluster_cert,
new_rapi_cert,
new_spice_cert,
new_confd_hmac_key,
new_cds,
new_client_cert,
master_name,
rapi_cert_pem=None,
spice_cert_pem=None,
spice_cacert_pem=None,
cds=None,
nodecert_file=pathutils.NODED_CERT_FILE,
clientcert_file=pathutils.NODED_CLIENT_CERT_FILE,
rapicert_file=pathutils.RAPI_CERT_FILE,
spicecert_file=pathutils.SPICE_CERT_FILE,
spicecacert_file=pathutils.SPICE_CACERT_FILE,
hmackey_file=pathutils.CONFD_HMAC_KEY,
cds_file=pathutils.CLUSTER_DOMAIN_SECRET_FILE)
Updates the cluster certificates, keys and secrets. |
source code
|
|
|
|
|
_WaitForNodeDaemon(node_name)
Wait for node daemon to become responsive. |
source code
|
|
|
_WaitForMasterDaemon()
Wait for master daemon to become responsive. |
source code
|
|
|
_WaitForSshDaemon(hostname,
port)
Wait for SSH daemon to become responsive. |
source code
|
|
|
|
string
|
_PrepareFileBasedStorage(enabled_disk_templates,
file_storage_dir,
default_dir,
file_disk_template,
_storage_path_acceptance_fn,
init_fn=_InitFileStorageDir,
acceptance_fn=None)
Checks if a file-base storage type is enabled and inits the dir. |
source code
|
|
|
_PrepareFileStorage(enabled_disk_templates,
file_storage_dir,
init_fn=_InitFileStorageDir,
acceptance_fn=None)
Checks if file storage is enabled and inits the dir. |
source code
|
|
|
_PrepareSharedFileStorage(enabled_disk_templates,
file_storage_dir,
init_fn=_InitFileStorageDir,
acceptance_fn=None)
Checks if shared file storage is enabled and inits the dir. |
source code
|
|
|
_PrepareGlusterStorage(enabled_disk_templates,
file_storage_dir,
init_fn=_InitFileStorageDir,
acceptance_fn=None)
Checks if gluster storage is enabled and inits the dir. |
source code
|
|
|
_InitCheckEnabledDiskTemplates(enabled_disk_templates)
Checks the sanity of the enabled disk templates. |
source code
|
|
|
|
|
|
|
InitCluster(cluster_name,
mac_prefix,
master_netmask,
master_netdev,
file_storage_dir,
shared_file_storage_dir,
gluster_storage_dir,
candidate_pool_size,
secondary_ip=None,
vg_name=None,
beparams=None,
nicparams=None,
ndparams=None,
hvparams=None,
diskparams=None,
enabled_hypervisors=None,
modify_etc_hosts=True,
modify_ssh_setup=True,
maintain_node_health=False,
drbd_helper=None,
uid_pool=None,
default_iallocator=None,
default_iallocator_params=None,
primary_ip_version=None,
ipolicy=None,
prealloc_wipe_disks=False,
use_external_mip_script=False,
hv_state=None,
disk_state=None,
enabled_disk_templates=None,
install_image=None,
zeroing_image=None,
compression_tools=None,
enabled_user_shutdown=False)
Initialise the cluster. |
source code
|
|
|
InitConfig(version,
cluster_config,
master_node_config,
cfg_file=pathutils.CLUSTER_CONF_FILE)
Create the initial cluster configuration. |
source code
|
|
|
|
|
|
|
|
|
|
list
|
|
|
|