The freezer_dr.evacuators.common.driver
Module¶
-
class
freezer_dr.evacuators.common.driver.
EvacuatorBaseDriver
(wait, retries, shared_storage, **kwargs)[source]¶ Bases:
object
Abstract class for all evacuation drivers should implement to have a unified interface
-
disable_node
(node)[source]¶ Disable the compute node from accepting any new VMs or requests :param node: dict contains node’s hostname :return: True pr False
-
evacuate_nodes
(nodes)[source]¶ Will evacuate all running VMs on the required nodes :param nodes: list of nodes :return: list of nodes with updated status
-
get_node_instances
(node)[source]¶ List instances on a compute host :param node: dict contains node’s hostname :return: List contains running VMs on a given node
-