The ironic.drivers.modules.xclarity.power Module

The ironic.drivers.modules.xclarity.power Module

class ironic.drivers.modules.xclarity.power.XClarityPower[source]

Bases: ironic.drivers.base.PowerInterface

get_power_state(*args, **kwargs)[source]

Gets the current power state.

Parameters:task – a TaskManager instance.
Returns:one of ironic.common.states POWER_OFF, POWER_ON or ERROR.
Raises:XClarityError if fails to retrieve power state of XClarity resource
get_properties()[source]
reboot(*args, **kwargs)[source]

Reboot the node

Parameters:
  • task – a TaskManager instance.
  • timeout – timeout (in seconds). Unsupported by this interface.
set_power_state(*args, **kwargs)[source]

Turn the current power state on or off.

Parameters:
  • task – a TaskManager instance.
  • power_state – The desired power state POWER_ON, POWER_OFF or REBOOT from ironic.common.states.
  • timeout – timeout (in seconds). Unsupported by this interface.
Raises:

InvalidParameterValue if an invalid power state was specified.

Raises:

XClarityError if XClarity fails setting the power state.

validate(*args, **kwargs)[source]

It validates if the node is being used by XClarity.

Parameters:task – a task from TaskManager.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.