The ironic.drivers.modules.drac.vendor_passthru Module

DRAC VendorPassthruBios Driver

class ironic.drivers.modules.drac.vendor_passthru.DracVendorPassthru[source]

Bases: ironic.drivers.base.VendorInterface

Interface for DRAC specific BIOS configuration methods.

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

Abandon a BIOS configuration job.

This method is used to abandon a BIOS configuration job previously submitted through set_bios_config().

Parameters:
  • task – the ironic task for abandoning the changes.
  • kwargs – not used.
Raises:

DracClientError on an error from pywsman library.

Raises:

DracOperationFailed on error reported back by DRAC.

Raises:

DracUnexpectedReturnValue if the drac did not report success.

Returns:

A dictionary containing the abandoned key with no return value.

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

Commit a BIOS configuration job.

This method is used to commit a BIOS configuration job. submitted through set_bios_config().

Parameters:
  • task – the ironic task for running the config job.
  • kwargs – not used.
Raises:

DracClientError on an error from pywsman library.

Raises:

DracPendingConfigJobExists if the job is already created.

Raises:

DracOperationFailed if the client received response with an error message.

Raises:

DracUnexpectedReturnValue if the client received a response with unexpected return value

Returns:

A dictionary containing the committing key with no return value, and the reboot_needed key with a value of True.

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

Get BIOS settings.

This method is used to retrieve the BIOS settings from a node.

Parameters:
  • task – the ironic task used to identify the node.
  • kwargs – not used.
Raises:

DracClientError on an error from pywsman.

Raises:

DracOperationFailed when a BIOS setting cannot be parsed.

Returns:

a dictionary containing BIOS settings.

get_properties()[source]

Returns the driver_info properties.

This method returns the driver_info properties for this driver.

Returns:a dictionary of propery names and their descriptions.
set_bios_config(*args, **kwargs)[source]

Change BIOS settings.

This method is used to change the BIOS settings on a node.

Parameters:
  • task – the ironic task used to identify the node.
  • kwargs – a dictionary of {‘AttributeName’: ‘NewValue’}
Raises:

DracOperationFailed if any of the attributes cannot be set for any reason.

Raises:

DracClientError on an error from the pywsman library.

Returns:

A dictionary containing the commit_needed key with a boolean value indicating whether commit_config() needs to be called to make the changes.

validate(task, **kwargs)[source]

Validates the driver_info of a node.

This method validates the driver_info associated with the node that is associated with the task.

Parameters:
  • task – the ironic task used to identify the node.
  • kwargs – not used.
Raises:

InvalidParameterValue if mandatory information is missing on the node or any driver_info is invalid.

Returns:

a dict containing information from driver_info and default values.

This Page