ironic_inspector.plugins.standard module

Standard set of plugins.

class ironic_inspector.plugins.standard.RamdiskErrorHook[source]

Bases: ProcessingHook

Hook to process error send from the ramdisk.

before_processing(introspection_data, **kwargs)[source]

Hook to run before any other data processing.

This hook is run even before sanity checks.

Parameters:
  • introspection_data – raw information sent by the ramdisk, may be modified by the hook.

  • kwargs – used for extensibility without breaking existing hooks

Returns:

nothing.

class ironic_inspector.plugins.standard.RootDiskSelectionHook[source]

Bases: ProcessingHook

Smarter root disk selection using Ironic root device hints.

This hook must always go before SchedulerHook, otherwise root_disk field might not be updated.

before_update(introspection_data, node_info, **kwargs)[source]

Process root disk information.

class ironic_inspector.plugins.standard.SchedulerHook[source]

Bases: ProcessingHook

Nova scheduler required properties.

KEYS = ('cpus', 'cpu_arch', 'memory_mb')
before_update(introspection_data, node_info, **kwargs)[source]

Update node with scheduler properties.

class ironic_inspector.plugins.standard.ValidateInterfacesHook[source]

Bases: ProcessingHook

Hook to validate network interfaces.

before_processing(introspection_data, **kwargs)[source]

Validate information about network interfaces.

before_update(introspection_data, node_info, **kwargs)[source]

Create new ports and drop ports that are not present in the data.