The freezer_dr.common.osclient
Module¶
OpenStack client class.
-
class
freezer_dr.common.osclient.
OSClient
(authurl, authmethod='password', **kwargs)[source]¶ Provide OpenStack credentials to initalize the connection.
-
evacuate
(nodes, shared_storage=False)[source]¶ Will get the hypervisors and list all running VMs on it and then start Evacuating one by one … :param nodes: List of nodes to be evacuated ! :param shared_storage: Boolean, True if your compute nodes are running under shared storage and False otherwise :return: List of nodes with VMs that were running on that node
-
get_hypervisor
(node)[source]¶ Get an instance of the hypervisor.
Parameters: node – dict contains host index Returns: Hypervisor
-