ironic.drivers.modules.drac.inspect module¶
DRAC inspection interface
- class ironic.drivers.modules.drac.inspect.DracInspect(*args, **kwargs)[source]¶
Bases:
ironic.drivers.modules.drac.inspect.DracWSManInspect
Class alias of class DracWSManInspect.
This class provides ongoing support of the deprecated ‘idrac’ inspect interface implementation entrypoint.
All bug fixes and new features should be implemented in its base class, DracWSManInspect. That makes them available to both the deprecated ‘idrac’ and new ‘idrac-wsman’ entrypoints. Such changes should not be made to this class.
- class ironic.drivers.modules.drac.inspect.DracRedfishInspect(*args, **kwargs)[source]¶
Bases:
ironic.drivers.modules.redfish.inspect.RedfishInspect
iDRAC Redfish interface for inspection-related actions.
- 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.
- class ironic.drivers.modules.drac.inspect.DracWSManInspect(*args, **kwargs)[source]¶
Bases:
ironic.drivers.base.InspectInterface
- get_properties()[source]¶
Return the properties of the interface.
- Returns
dictionary of <property name>:<property description> entries.
- inspect_hardware(task)[source]¶
Inspect hardware.
Inspect hardware to obtain the essential & additional hardware properties.
- Parameters
task – a TaskManager instance containing the node to act on.
- Raises
HardwareInspectionFailure, if unable to get essential hardware properties.
- Returns
states.MANAGEABLE
- validate(task)[source]¶
Validate the driver-specific info supplied.
This method validates whether the ‘driver_info’ property of the supplied node contains the required information for this driver to manage the node.
- Parameters
task – a TaskManager instance containing the node to act on.
- Raises
InvalidParameterValue if required driver_info attribute is missing or invalid on the node.