The ironic.drivers.modules.ilo.power Module¶
iLO Power Driver
- 
class 
ironic.drivers.modules.ilo.power.IloPower[source]¶ Bases:
ironic.drivers.base.PowerInterface- 
get_power_state(*args, **kwargs)[source]¶ Gets the current power state.
Parameters: - task – a TaskManager instance.
 - node – The Node.
 
Returns: one of
ironic.common.statesPOWER_OFF, POWER_ON or ERROR.Raises: InvalidParameterValue if required iLO credentials are missing.
Raises: IloOperationError on an error from IloClient library.
- 
reboot(*args, **kwargs)[source]¶ Reboot the node
Parameters: - task – a TaskManager instance.
 - node – The Node.
 
Raises: PowerStateFailure if the final state of the node is not POWER_ON.
Raises: IloOperationError on an error from IloClient library.
- 
set_power_state(*args, **kwargs)[source]¶ Turn the current power state on or off.
Parameters: - task – a TaskManager instance.
 - node – The Node.
 - power_state – The desired power state POWER_ON,POWER_OFF or
REBOOT from 
ironic.common.states. 
Raises: InvalidParameterValue if an invalid power state was specified.
Raises: IloOperationError on an error from IloClient library.
Raises: PowerStateFailure if the power couldn’t be set to power_state.
-