DRAC Power Driver using the Base Server Profile
Bases: ironic.drivers.base.PowerInterface
Interface for power-related actions.
Return the power state of the task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | a power state. One of ironic.common.states. |
Raises: | DracClientError if the client received unexpected response. |
Perform a hard reboot of the task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | DracClientError if the client received unexpected response. |
Raises: | DracOperationFailed if the client received response with an error message. |
Raises: | DracUnexpectedReturnValue if the client received a response with unexpected return value. |
Set the power state of the task’s node.
Parameters: |
|
---|---|
Raises: | DracClientError if the client received unexpected response. |
Raises: | DracOperationFailed if the client received response with an error message. |
Raises: | DracUnexpectedReturnValue if the client received a response with unexpected return value. |
Validate the driver-specific Node power info.
This method validates whether the ‘driver_info’ property of the supplied node contains the required information for this driver to manage the power state of the node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | InvalidParameterValue if required driver_info attribute is missing or invalid on the node. |