ironic.drivers.modules.redfish.inspect module

Redfish Inspect Interface

class ironic.drivers.modules.redfish.inspect.RedfishInspect(*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 properties. It fails if any of the essential properties are not received from the node.

Parameters:

task – a TaskManager instance.

Raises:

HardwareInspectionFailure if essential properties could not be retrieved successfully.

Returns:

The resulting state of inspection.

validate(task)[source]

Validate the driver-specific Node deployment info.

This method validates whether the ‘driver_info’ properties of the task’s node contains the required information for this interface to function.

This method is often executed synchronously in API requests, so it should not conduct long-running checks.

Parameters:

task – A TaskManager instance containing the node to act on.

Raises:

InvalidParameterValue on malformed parameter(s)

Raises:

MissingParameterValue on missing parameter(s)