The ironic.drivers.modules.ucs.management Module

Ironic Cisco UCSM interfaces. Provides Management interface operations of servers managed by Cisco UCSM using PyUcs Sdk.

class ironic.drivers.modules.ucs.management.UcsManagement[source]

Bases: ironic.drivers.base.ManagementInterface

get_boot_device(task, *args, **kwargs)[source]

Get the current boot device for the task’s node.

Provides the current boot device of the node.

Parameters:
  • task – a task from TaskManager.
  • helper – ucs helper instance.
Returns:

a dictionary containing:

boot_device:the boot device, one of ironic.common.boot_devices [PXE, DISK, CDROM] or None if it is unknown.
persistent:Whether the boot device will persist to all future boots or not, None if it is unknown.

Raises:

MissingParameterValue if a required UCS parameter is missing.

Raises:

UcsOperationError on error from UCS client, while setting the boot device.

get_properties()[source]
get_sensors_data(task)[source]

Get sensors data.

Not implemented by this driver. :param task: a TaskManager instance.

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

Set the boot device for the task’s 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 ‘PXE, DISK or CDROM’.
  • persistent – Boolean value. True if the boot device will persist to all future boots, False if not. Default: False. Ignored by this driver.
  • helper – ucs helper instance.
Raises:

MissingParameterValue if required CiscoDriver parameters are missing.

Raises:

UcsOperationError on error from UCS client. setting the boot device.

validate(task)[source]

Check that ‘driver_info’ contains UCSM login 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 if a required parameter is missing

Project Source

This Page