ironic.drivers.modules.drac.management module

DRAC management interface

class ironic.drivers.modules.drac.management.DracRedfishManagement(*args, **kwargs)[source]

Bases: RedfishManagement

iDRAC Redfish interface for management-related actions.

EXPORT_CONFIGURATION_ARGSINFO = {'export_configuration_location': {'description': 'URL of location to save the configuration to.', 'required': True}}
IMPORT_CONFIGURATION_ARGSINFO = {'import_configuration_location': {'description': 'URL of location to fetch desired configuration from.', 'required': True}}
IMPORT_EXPORT_CONFIGURATION_ARGSINFO = {'export_configuration_location': {'description': 'URL of location to save the configuration to.', 'required': True}, 'import_configuration_location': {'description': 'URL of location to fetch desired configuration from.', 'required': True}}
clear_job_queue(task)[source]

Clear iDRAC job queue.

Parameters:

task – a TaskManager instance containing the node to act on.

Raises:

RedfishError on an error.

export_configuration(task, export_configuration_location)[source]

(Deprecated) Export the configuration of the server.

Exports the configuration of the server against which the step is run and stores it in specific format in indicated location.

Uses Dell’s Server Configuration Profile (SCP) from sushy-oem-idrac library to get ALL configuration for cloning.

Parameters:
  • task – A task from TaskManager.

  • export_configuration_location – URL of location to save the configuration to.

Raises:

MissingParameterValue if missing configuration name of a file to save the configuration to

Raises:

DracOperatationError when no managagers for Redfish system found or configuration export from SCP failed

Raises:

RedfishError when loading OEM extension failed

import_configuration(task, import_configuration_location)[source]

(Deprecated) Import and apply the configuration to the server.

Gets pre-created configuration from storage by given location and imports that into given server. Uses Dell’s Server Configuration Profile (SCP).

Parameters:
  • task – A task from TaskManager.

  • import_configuration_location – URL of location to fetch desired configuration from.

Raises:

MissingParameterValue if missing configuration name of a file to fetch the configuration from

import_export_configuration(task, import_configuration_location, export_configuration_location)[source]

Import and export configuration in one go.

Gets pre-created configuration from storage by given name and imports that into given server. After that exports the configuration of the server against which the step is run and stores it in specific format in indicated storage as configured by Ironic.

Parameters:
  • import_configuration_location – URL of location to fetch desired configuration from.

  • export_configuration_location – URL of location to save the configuration to.

known_good_state(task)[source]

Reset iDRAC to known good state.

An iDRAC is reset to a known good state by resetting it and clearing its job queue.

Parameters:

task – a TaskManager instance containing the node to act on.

Raises:

RedfishError on an error.

reset_idrac(task)[source]

Reset the iDRAC.

Parameters:

task – a TaskManager instance containing the node to act on.

Raises:

RedfishError on an error.