ironic.drivers.modules.inspector.interface module

class ironic.drivers.modules.inspector.interface.Common(*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 obtain the hardware properties.

Results will be checked in a periodic task.

Parameters:

task – a task from TaskManager.

Returns:

states.INSPECTWAIT

Raises:

HardwareInspectionFailure on failure

validate(task)[source]

Validate the driver-specific inspection information.

If invalid, raises an exception; otherwise returns None.

Parameters:

task – a task from TaskManager.

Raises:

UnsupportedDriverExtension

ironic.drivers.modules.inspector.interface.clean_up(task, finish=True, always_power_off=False)[source]
ironic.drivers.modules.inspector.interface.inspection_error_handler(task, error, raise_exc=False, clean_up=True)[source]
ironic.drivers.modules.inspector.interface.ironic_manages_boot(task, raise_exc=False)[source]

Whether ironic should manage boot for this node.

ironic.drivers.modules.inspector.interface.prepare_managed_inspection(task, endpoint)[source]

Prepare the boot interface for managed inspection.

ironic.drivers.modules.inspector.interface.tear_down_managed_boot(task, always_power_off=False)[source]