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_info()[source]

Get Driver Information :return: Dict contains driver information

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

get_node_status(node)[source]

Check the node status and report it :param node: dict contains node’s hostname :return: dict with key ‘status’: ‘True or False’

is_node_disabled(node)[source]

Check if node is already disabled or not :param node: dict contains node’s hostname :return: True or False