The ironic.drivers.modules.amt.management Module

AMT Management Driver

class ironic.drivers.modules.amt.management.AMTManagement[source]

Bases: ironic.drivers.base.ManagementInterface

ensure_next_boot_device(node, boot_device)[source]

Set next boot device (one time only) of AMT Client.

Parameters:
  • node – a node object
  • boot_device – the boot device
Raises:

AMTFailure

Raises:

AMTConnectFailure

get_boot_device(task)[source]

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

Returns the current boot device of the node.

Parameters:task – a task from TaskManager.
Returns:a dictionary containing:
boot_device:the boot device
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_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.
set_boot_device(*args, **kwargs)[source]

Set the boot device for the task’s node.

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

Parameters:
  • task – a task from TaskManager.
  • device – the boot device
  • 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.

validate(task)[source]

Validate the driver_info in the node

Check if the driver_info contains correct required fields

Parameters:task – a TaskManager instance contains the target node
Raises:MissingParameterValue if any required parameters are missing.
Raises:InvalidParameterValue if any parameters have invalid values.

Project Source

This Page