freezer_dr.fencers.common package

Submodules

freezer_dr.fencers.common.driver module

Abstract fencer

class freezer_dr.fencers.common.driver.FencerBaseDriver(nodes, fencer_conf)[source]

Bases: object

Abstract class that all fencer plugins.

Should be implemented to have a unified interface and as many plugins as needed.

abstract fence()[source]

This function to be implemented by each driver. Each driver will implement its own fencing logic and the manager will just load it and call the fence function

abstract get_info()[source]

Get Driver information.

Returns

dict of name, version, author, …

freezer_dr.fencers.common.manager module

class freezer_dr.fencers.common.manager.FencerManager(nodes)[source]

Bases: object

fence(nodes=None)[source]

Try to shutdown nodes and wait for configurable amount of times :return: list of nodes and either they are shutdown or failed

Module contents