DRAC power interface
ironic.drivers.modules.drac.power.
DracPower
[source]¶Bases: ironic.drivers.base.PowerInterface
Interface for power-related actions.
get_power_state
(task)[source]¶Return the power state of the node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | the power state, one of ironic.common.states . |
Raises: | InvalidParameterValue if required DRAC credentials are missing. |
Raises: | DracOperationError on an error from python-dracclient. |
reboot
(task, timeout=None)[source]¶Perform a reboot of the task’s node.
Parameters: |
|
---|---|
Raises: | InvalidParameterValue if required DRAC credentials are missing. |
Raises: | DracOperationError on an error from python-dracclient. |
set_power_state
(task, power_state, timeout=None)[source]¶Set the power state of the node.
Parameters: |
|
---|---|
Raises: | InvalidParameterValue if required DRAC credentials are missing. |
Raises: | DracOperationError on an error from python-dracclient. |
validate
(task)[source]¶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. |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.