ironic.drivers.modules.ilo.inspect module

iLO Inspect Interface

class ironic.drivers.modules.ilo.inspect.IloInspect(*args, **kwargs)[source]

Bases: InspectInterface

get_properties()[source]

Return the properties of the interface.

Returns:

dictionary of <property name>:<property description> entries.

inspect_hardware(task)[source]

Inspect hardware to get the hardware properties.

Inspects hardware to get the essential and additional hardware properties. It fails if any of the essential properties are not received from the node. It doesn’t fail if node fails to return any capabilities as the capabilities differ from hardware to hardware mostly.

Parameters:

task – a TaskManager instance.

Raises:

HardwareInspectionFailure if essential properties could not be retrieved successfully.

Raises:

IloOperationError if system fails to get power state.

Returns:

The resulting state of inspection.

validate(task)[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.