The ironic.drivers.modules.amt.power
Module¶
AMT Power Driver
-
class
ironic.drivers.modules.amt.power.
AMTPower
[source]¶ Bases:
ironic.drivers.base.PowerInterface
AMT Power interface.
This Power interface control the power of node by providing power on/off and reset functions.
-
get_power_state
(task)[source]¶ Get the power state from the node.
Parameters: task – a TaskManager instance contains the target node. Raises: AMTFailure. Raises: AMTConnectFailure.
-
reboot
(*args, **kwargs)[source]¶ Cycle the power of the node
Parameters: task – a TaskManager instance contains the target node. Raises: PowerStateFailure if failed to reboot. Raises: AMTFailure. Raises: AMTConnectFailure. Raises: InvalidParameterValue
-
set_power_state
(*args, **kwargs)[source]¶ Set the power state of the node.
Turn the node power on or off.
Parameters: - task – a TaskManager instance contains the target node.
- pstate – The desired power state of the node.
Raises: PowerStateFailure if the power cannot set to pstate.
Raises: AMTFailure.
Raises: AMTConnectFailure.
Raises: InvalidParameterValue
-
validate
(task)[source]¶ Validate the driver_info in the node.
Check if the driver_info contains correct required fields
Parameters: task – a TaskManager instance contains the target node. Raises: MissingParameterValue if any required parameters are missing. Raises: InvalidParameterValue if any parameters have invalid values.
-