iLO Power Driver
ironic.drivers.modules.ilo.power.
IloPower
(*args, **kwargs)[source]¶Bases: ironic.drivers.base.PowerInterface
get_power_state
(task)[source]¶Gets the current power state.
task – a TaskManager instance.
node – The Node.
one of ironic.common.states
POWER_OFF,
POWER_ON or ERROR.
InvalidParameterValue if required iLO credentials are missing.
IloOperationError on an error from IloClient library.
get_properties
()[source]¶Return the properties of the interface.
dictionary of <property name>:<property description> entries.
get_supported_power_states
(task)[source]¶Get a list of the supported power states.
task – A TaskManager instance containing the node to act on. currently not used.
A list with the supported power states defined
in ironic.common.states
.
reboot
(task, timeout=None)[source]¶Reboot the node
task – a TaskManager instance.
timeout – timeout (in seconds). Unsupported by this interface.
PowerStateFailure if the final state of the node is not POWER_ON.
IloOperationError on an error from IloClient library.
set_power_state
(task, power_state, timeout=None)[source]¶Turn the current power state on or off.
task – a TaskManager instance.
power_state – The desired power state POWER_ON,POWER_OFF or
REBOOT from ironic.common.states
.
timeout – timeout (in seconds). Unsupported by this interface.
InvalidParameterValue if an invalid power state was specified.
IloOperationError on an error from IloClient library.
PowerStateFailure if the power couldn’t be set to power_state.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.