Ironic Native IPMI power manager.
Bases: ironic.drivers.base.ManagementInterface
Get the current boot device for the task’s node.
Returns the current boot device of the node.
Parameters: | task – a task from TaskManager. | ||||
---|---|---|---|---|---|
Raises: | MissingParameterValue if required IPMI parameters are missing. | ||||
Raises: | IPMIFailure on an error from pyghmi. | ||||
Returns: | a dictionary containing:
|
Get sensors data.
Parameters: | task – a TaskManager instance. |
---|---|
Raises: | FailedToGetSensorData when getting the sensor data fails. |
Raises: | MissingParameterValue if required ipmi parameters are missing |
Returns: | returns a dict of sensor data group by sensor type. |
Get a list of the supported boot devices.
Parameters: | task – a task from TaskManager. |
---|---|
Returns: | A list with the supported boot devices defined in ironic.common.boot_devices. |
Set the boot device for the task’s node.
Set the boot device to use on next reboot of the node.
Parameters: |
|
---|---|
Raises: | InvalidParameterValue if an invalid boot device is specified or required ipmi credentials are missing. |
Raises: | MissingParameterValue when required ipmi credentials are missing. |
Raises: | IPMIFailure on an error from pyghmi. |
Check that ‘driver_info’ contains IPMI credentials.
Validates whether the ‘driver_info’ property of the supplied task’s node contains the required credentials information.
Parameters: | task – a task from TaskManager. |
---|---|
Raises: | MissingParameterValue when required ipmi credentials are missing. |
Bases: ironic.drivers.base.PowerInterface
The power driver using native python-ipmi library.
Get the current power state of the task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Returns: | power state POWER_ON, POWER_OFF or ERROR defined in ironic.common.states. |
Raises: | MissingParameterValue when required ipmi credentials are missing. |
Raises: | IPMIFailure when the native ipmi call fails. |
Cycles the power to the task’s node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | IPMIFailure when the native ipmi call fails. |
Raises: | MissingParameterValue when required ipmi credentials are missing. |
Raises: | PowerStateFailure when invalid power state is returned from ipmi. |
Turn the power on or off.
Parameters: |
|
---|---|
Raises: | IPMIFailure when the native ipmi call fails. |
Raises: | MissingParameterValue when required ipmi credentials are missing. |
Raises: | InvalidParameterValue when an invalid power state is specified |
Raises: | PowerStateFailure when invalid power state is returned from ipmi. |
Bases: ironic.drivers.base.ConsoleInterface
A ConsoleInterface that uses pyghmi and shellinabox.
Get the type and connection information about the console.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | MissingParameterValue when required IPMI credentials or the IPMI terminal port are missing |
Raises: | InvalidParameterValue when the IPMI terminal port is not an integer. |
Start a remote console for the node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | MissingParameterValue when required ipmi credentials are missing. |
Raises: | InvalidParameterValue when the IPMI terminal port is not an integer. |
Raises: | ConsoleError if unable to start the console process. |
Stop the remote console session for the node.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | ConsoleError if unable to stop the console process. |
Validate the Node console info.
Parameters: | task – a TaskManager instance containing the node to act on. |
---|---|
Raises: | MissingParameterValue when required IPMI credentials or the IPMI terminal port are missing |
Raises: | InvalidParameterValue when the IPMI terminal port is not an integer. |
Bases: ironic.drivers.base.VendorInterface
Reset BMC via IPMI command.
Parameters: |
|
---|---|
Raises: | IPMIFailure on an error from native IPMI call. |
Raises: | MissingParameterValue if a required parameter is missing. |
Raises: | InvalidParameterValue when an invalid value is specified |
Send raw bytes to the BMC. Bytes should be a string of bytes.
Parameters: |
|
---|---|
Raises: | IPMIFailure on an error from native IPMI call. |
Raises: | MissingParameterValue if a required parameter is missing. |
Raises: | InvalidParameterValue when an invalid value is specified. |
Validate vendor-specific actions.
Parameters: |
|
---|---|
Raises: | InvalidParameterValue when an invalid parameter value is specified. |
Raises: | MissingParameterValue if a required parameter is missing. |