The ironic.drivers.modules.ilo.management
Module¶
iLO Management Interface
-
class
ironic.drivers.modules.ilo.management.
IloManagement
[source]¶ Bases:
ironic.drivers.base.ManagementInterface
-
activate_license
(*args, **kwargs)[source]¶ Activates iLO Advanced license.
Parameters: task – a TaskManager object. Raises: InvalidParameterValue, if any of the arguments are invalid. Raises: NodeCleaningFailure, on failure to execute clean step.
-
clear_secure_boot_keys
(*args, **kwargs)[source]¶ Clear all secure boot keys.
Clears all the secure boot keys. This operation is supported only on HP Proliant Gen9 and above servers.
Parameters: task – a task from TaskManager. Raises: NodeCleaningFailure, on failure to execute step.
-
get_boot_device
(*args, **kwargs)[source]¶ Get the current boot device for a node.
Returns the current boot device of the node.
Parameters: task – a task from TaskManager. Raises: MissingParameterValue if a required iLO parameter is missing. Raises: IloOperationError on an error from IloClient library. Returns: a dictionary containing: boot_device: the boot device, one of the supported devices listed in ironic.common.boot_devices
or None if it is unknown.persistent: Whether the boot device will persist to all future boots or not, None if it is unknown.
-
get_sensors_data
(*args, **kwargs)[source]¶ Get sensors data.
Parameters: task – a TaskManager instance. Raises: FailedToGetSensorData when getting the sensor data fails. Raises: FailedToParseSensorData when parsing sensor data fails. Raises: InvalidParameterValue if required ipmi parameters are missing. Raises: MissingParameterValue if a required parameter is missing. Returns: returns a dict of sensor data group by sensor type.
-
get_supported_boot_devices
(*args, **kwargs)[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
.
-
reset_bios_to_default
(*args, **kwargs)[source]¶ Resets the BIOS settings to default values.
Resets BIOS to default settings. This operation is currently supported only on HP Proliant Gen9 and above servers.
Parameters: task – a task from TaskManager. Raises: NodeCleaningFailure, on failure to execute step.
-
reset_ilo
(*args, **kwargs)[source]¶ Resets the iLO.
Parameters: task – a task from TaskManager. Raises: NodeCleaningFailure, on failure to execute step.
-
reset_ilo_credential
(*args, **kwargs)[source]¶ Resets the iLO password.
Parameters: task – a task from TaskManager. Raises: NodeCleaningFailure, on failure to execute step.
-
reset_secure_boot_keys_to_default
(*args, **kwargs)[source]¶ Reset secure boot keys to manufacturing defaults.
Resets the secure boot keys to manufacturing defaults. This operation is supported only on HP Proliant Gen9 and above servers.
Parameters: task – a task from TaskManager. Raises: NodeCleaningFailure, on failure to execute step.
-
set_boot_device
(*args, **kwargs)[source]¶ Set the boot device for a 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 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: MissingParameterValue if a required parameter is missing.
Raises: IloOperationError on an error from IloClient library.
-
update_firmware
(*args, **kwargs)[source]¶ Updates the firmware.
Parameters: task – a TaskManager object. Raises: InvalidParameterValue if update firmware mode is not ‘ilo’. Even applicable for invalid input cases. Raises: NodeCleaningFailure, on failure to execute step.
-
validate
(*args, **kwargs)[source]¶ Check that ‘driver_info’ contains required ILO 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: InvalidParameterValue if required iLO parameters are not valid. Raises: MissingParameterValue if a required parameter is missing.
-