Ironic iBoot PDU power manager.
Bases: ironic.drivers.base.PowerInterface
iBoot PDU Power Driver for Ironic
This PowerManager class provides a mechanism for controlling power state via an iBoot capable device.
Requires installation of python-iboot:
Get the current power state of the task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | one of ironic.common.states POWER_OFF, POWER_ON or ERROR. |
Raises: | InvalidParameterValue if iboot parameters are invalid. |
Raises: | MissingParameterValue if required iboot parameters are missing. |
Cycles the power to the task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | InvalidParameterValue if iboot parameters are invalid. |
Raises: | MissingParameterValue if required iboot parameters are missing. |
Raises: | PowerStateFailure if the final state of the node is not POWER_ON. |
Turn the power on or off.
Parameters: |
|
---|---|
Raises: | InvalidParameterValue if iboot parameters are invalid or if an invalid power state was specified. |
Raises: | MissingParameterValue if required iboot parameters are missing. |
Raises: | PowerStateFailure if the power couldn’t be set to pstate. |