The ironic.drivers.modules.drac.management Module

DRAC Management Driver

class ironic.drivers.modules.drac.management.DracManagement[source]

Bases: ironic.drivers.base.ManagementInterface

get_boot_device(task)[source]

Get the current boot device for a node.

Returns the current boot device of the node.

Parameters:task – a task from TaskManager.
Raises:DracClientError on an error from pywsman library.
Returns:a dictionary containing:
boot_device:the boot device, one of ironic.common.boot_devices or None if it is unknown.
persistent:Whether the boot device will persist to all future boots or not, None if it is unknown.
get_properties()[source]
get_sensors_data(task)[source]

Get sensors data.

Parameters:task – a TaskManager instance.
Raises:FailedToGetSensorData when getting the sensor data fails.
Raises:FailedToParseSensorData when parsing sensor data fails.
Returns:returns a consistent format dict of sensor data grouped by sensor type, which can be processed by Ceilometer.
get_supported_boot_devices(task)[source]

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_boot_device(*args, **kwargs)[source]

Set the boot device for a node.

Set the boot device to use on next reboot of the node.

Parameters:
  • task – a task from TaskManager.
  • device – the boot device, one of ironic.common.boot_devices.
  • persistent – Boolean value. True if the boot device will persist to all future boots, False if not. Default: False.
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.

Raises:

InvalidParameterValue if an invalid boot device is specified.

Raises:

DracPendingConfigJobExists on an error when creating the job.

validate(task)[source]

Validate the driver-specific info supplied.

This method validates whether the ‘driver_info’ property of the supplied node contains the required information for this driver to manage 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.
ironic.drivers.modules.drac.management.ONE_TIME_BOOT = '3'

Is the next boot config the system will use, one time boot only.

ironic.drivers.modules.drac.management.PERSISTENT = '1'

Is the next boot config the system will use.

This Page