freezer_dr.fencers.drivers.ipmi package

Submodules

freezer_dr.fencers.drivers.ipmi.driver module

class freezer_dr.fencers.drivers.ipmi.driver.IpmiDriver(nodes, fencer_conf)[source]

Bases: freezer_dr.fencers.common.driver.FencerBaseDriver

fence()[source]

Implements the fencing procedure for server fencing using ipmi :return: a list of nodes and weather they’re fenced or not!

force_shutdown()[source]
get_info()[source]

Get Driver information.

Returns

dict of name, version, author, …

get_node_details(node)[source]

Loads the node’s fencing information from credentials_file :param node: a dict contains node ip or hostname :return: a dict contains node fencing information

graceful_shutdown()[source]
power_on()[source]
prepare_node(node)[source]

Prepares the subprocess to call ipmitool with the node details! :param node: dict contains node fencing information

status()[source]

freezer_dr.fencers.drivers.ipmi.ipmitool module

class freezer_dr.fencers.drivers.ipmi.ipmitool.IpmiInterface(host, username, password, verbose=False, interface='lanplus')[source]

Bases: object

get_power_status()[source]

get the machine power status :return: 1 if the power is on and 0 if the power is off. otherwise it will return -1 for unknown state

power_down()[source]

Force shutdown the machine

power_on()[source]

power on the machine

power_reset()[source]

restart the machine

power_soft()[source]

Softly shutdown the machine

Module contents