Bases: exceptions.Exception
Inspector exception.
Bases: ironic_inspector.utils.Error
Invalid event attempted.
Bases: ironic_inspector.utils.Error
State mismatch between the DB and a node_info.
Bases: ironic_inspector.utils.Error
Exception when node was not found in cache during processing.
Bases: oslo_log.log.KeywordArgumentAdapter
Add authentication middleware to Flask application.
Parameters: | app – application. |
---|
Create a CORS wrapper
Attach ironic-inspector-specific defaults that must be included in all CORS responses.
Parameters: | app – application |
---|
Check authentication on request.
Parameters: | request – Flask request |
---|---|
Raises: | utils.Error if access is denied |
Get and validate the hardware inventory from introspection data.
Get a list of valid MAC’s from the introspection data.
Return an ISO8601-formatted timestamp (tz: UTC) or None.
Parameters: |
|
---|---|
Returns: | an ISO8601-formatted timestamp, or None |
Calculate prefix for logging.
Tries to use: * node UUID, node._state * node PXE MAC, * node BMC address
Parameters: |
|
---|---|
Returns: | logging prefix as a string |