ironic.drivers.modules.xclarity.management module

ironic.drivers.modules.xclarity.management module

service None

Bases: ironic.drivers.base.ManagementInterface

XClarityManagement.get_boot_device(task)[source]

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

Parameters:task – a task from TaskManager.
Returns:a dictionary containing: :boot_device: the boot device, one of [PXE, DISK, CDROM, BIOS] :persistent: Whether the boot device will persist or not
Raises:InvalidParameterValue if the boot device is unknown
Raises:XClarityError if the communication with XClarity fails
XClarityManagement.get_properties()[source]

Return the properties of the interface.

Returns:dictionary of <property name>:<property description> entries.
XClarityManagement.get_sensors_data(task)[source]

Get sensors data.

Parameters:task – a TaskManager instance.
Raises:NotImplementedError
XClarityManagement.get_supported_boot_devices(task)[source]

Gets 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.
XClarityManagement.set_boot_device(task, device, persistent=False)[source]

Sets the boot device for a node.

Parameters:
  • task – a task from TaskManager.
  • device – the boot device, one of the supported devices listed in ironic.common.boot_devices.
  • persistent – Boolean value. True if the boot device will persist to all future boots, False if not. Default: False.
Raises:

InvalidParameterValue if an invalid boot device is specified.

Raises:

XClarityError if the communication with XClarity fails

XClarityManagement.validate(task)[source]

Validate the driver-specific info supplied.

This method validates if the ‘driver_info’ property of the supplied task’s node contains the required information for this driver to manage the node.

Parameters:task – a task from TaskManager.
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.