osia.installer.clouds package¶
Submodules¶
osia.installer.clouds.aws module¶
Module implements configuration object for aws installation
-
class
osia.installer.clouds.aws.
AWSInstaller
(cluster_region=None, list_of_regions=None, **kwargs)¶ Bases:
osia.installer.clouds.base.AbstractInstaller
Object containing all configuration related to aws installation
-
acquire_resources
()¶ Method which is called before the install-config can be generated. The method should be used to get all necessary dependencies to fill in details in install-config
-
get_template_name
()¶ Method to obtain name of jinja template related to specified platform.
-
post_installation
()¶ Method called after the installation is done, this is the place where, things like registration of apps domain and other is expected to happen.
-
-
osia.installer.clouds.aws.
get_free_region
(order_list: List[str]) → Optional[str]¶ Finds first free region in provided list, if provided list is empty, it searches all regions
osia.installer.clouds.base module¶
Module implements common base for install-config creation. It also implements logic to obtain correct specification for specified installation platform
-
class
osia.installer.clouds.base.
AbstractInstaller
(cluster_name=None, base_domain=None, master_flavor=None, master_replicas=None, pull_secret_file=None, ssh_key_file=None, worker_flavor=None, worker_replicas=None, certificate_bundle_file=None, cluster_directory=None, skip_clean=False, installer=None, **unused_kwargs)¶ Bases:
abc.ABC
Base object for configuration of install-config
-
abstract
acquire_resources
()¶ Method which is called before the install-config can be generated. The method should be used to get all necessary dependencies to fill in details in install-config
-
check_clean
()¶ Method returns if installation is configured to clean resources on failure.
-
classmethod
get_environment
() → jinja2.environment.Environment¶ Method loads jinja templates
-
abstract
get_template_name
()¶ Method to obtain name of jinja template related to specified platform.
-
abstract
post_installation
()¶ Method called after the installation is done, this is the place where, things like registration of apps domain and other is expected to happen.
-
process_template
()¶ Method executes creation of install-config.yaml
-
abstract
-
class
osia.installer.clouds.base.
InstallerProvider
¶ Bases:
object
Class implements dynamic provider of registered platform specific implementations of AbstractInstaller. Class implements singleton design pattern.
-
add_installer
(name: str, instance: ClassVar)¶ Insert concrete implementation of AbstractInstaller into the registry
-
classmethod
instance
() → osia.installer.clouds.base.InstallerProvider¶ Method to obtains singleton instance.
-
classmethod
register
(name, instance)¶ Method to dynamically register implementation of AbstractInstaller
-
osia.installer.clouds.openstack module¶
Module implements support for Openstack installation
-
exception
osia.installer.clouds.openstack.
ImageException
(*args, **kwargs)¶ Bases:
Exception
Image exception encapsulates Exception happening while image resolution
-
class
osia.installer.clouds.openstack.
OpenstackInstaller
(osp_cloud=None, osp_base_flavor=None, network_list=None, os_image=None, images_dir=None, osp_image_download=False, osp_image_unique=False, args=None, **kwargs)¶ Bases:
osia.installer.clouds.base.AbstractInstaller
Class containing configuration related to openstack
-
acquire_resources
()¶ Method which is called before the install-config can be generated. The method should be used to get all necessary dependencies to fill in details in install-config
-
get_template_name
()¶ Method to obtain name of jinja template related to specified platform.
-
post_installation
()¶ Method called after the installation is done, this is the place where, things like registration of apps domain and other is expected to happen.
-
-
osia.installer.clouds.openstack.
add_cluster
(osp_connection: openstack.connection.Connection, image: openstack.image.v2.image.Image, cluster_name: str)¶ Function adds cluster name to image metadata in order to prevent image deletion
-
osia.installer.clouds.openstack.
delete_fips
(fips_file: str)¶ Deletes floating ips stored in configuration file
-
osia.installer.clouds.openstack.
delete_image
(fips_file, cluster_name)¶ Function checkes the uploaded image into openstack and removes from its metadata information about associated cluster. If last associated cluster was removed, the image is deleted
-
osia.installer.clouds.openstack.
resolve_image
(osp_connection: openstack.connection.Connection, cloud: str, cluster_name: str, images_dir: str, installer: str, error: Optional[Exception])¶ Function searches for image in openstack and creates it if it doesn’t exist
-
osia.installer.clouds.openstack.
upload_uniq_image
(osp_connection: openstack.connection.Connection, cloud: str, cluster_name: str, images_dir: str, installer: str)¶ Function uploads unique image to the cluster, instead of making shared one
Module contents¶
Module implements configuration objects for install-config creation