The ironic_inspector.plugins.introspection_data Module

The ironic_inspector.plugins.introspection_data Module

Backends for storing introspection data.

class ironic_inspector.plugins.introspection_data.BaseStorageBackend[source]

Bases: object

get(node_uuid, processed=True, get_json=False)[source]

Get introspected data from storage backend.

Parameters:
  • node_uuid – node UUID.
  • processed – Specify whether the data to be retrieved is processed or not.
  • get_json – Specify whether return the introspection data in json format, string value is returned if False.
Returns:

the introspection data.

Raises:

IntrospectionDataStoreDisabled if storage backend is disabled.

save(node_uuid, data, processed=True)[source]

Save introspected data to storage backend.

Parameters:
  • node_uuid – node UUID.
  • data – the introspected data to be saved, in dict format.
  • processed – Specify whether the data to be saved is processed or not.
Raises:

IntrospectionDataStoreDisabled if storage backend is disabled.

class ironic_inspector.plugins.introspection_data.DatabaseStore[source]

Bases: object

get(node_uuid, processed=True, get_json=False)[source]
save(node_uuid, data, processed=True)[source]
class ironic_inspector.plugins.introspection_data.NoStore[source]

Bases: ironic_inspector.plugins.introspection_data.BaseStorageBackend

get(node_uuid, processed=True, get_json=False)[source]

Get introspected data from storage backend.

Parameters:
  • node_uuid – node UUID.
  • processed – Specify whether the data to be retrieved is processed or not.
  • get_json – Specify whether return the introspection data in json format, string value is returned if False.
Returns:

the introspection data.

Raises:

IntrospectionDataStoreDisabled if storage backend is disabled.

save(node_uuid, data, processed=True)[source]

Save introspected data to storage backend.

Parameters:
  • node_uuid – node UUID.
  • data – the introspected data to be saved, in dict format.
  • processed – Specify whether the data to be saved is processed or not.
Raises:

IntrospectionDataStoreDisabled if storage backend is disabled.

class ironic_inspector.plugins.introspection_data.SwiftStore[source]

Bases: object

get(node_uuid, processed=True, get_json=False)[source]
save(node_uuid, data, processed=True)[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.