The freezer_dr.fencers.common.driver Module

Abstract fencer

class freezer_dr.fencers.common.driver.FencerBaseDriver(node, **kwargs)[source]

Bases: object

Abstract class that all fencer plugins.

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

force_shutdown()[source]

Force shutdown the compute node to evacuate it.

May be you can try force shutdown if the graceful shutdown failed.

get_info()[source]

Get Driver information.

Returns:dict of name, version, author, ...
graceful_shutdown()[source]

Gracefully shutdown the compute node to evacuate it.

status()[source]

Get compute node status.

Should return 1 if on and 0 if off or -1 if error or unknown power status.