ironic-inspector/ironic_inspector
Julia Kreger e1d457da36 Ignored error state cache for new requests
A possibility exists where inspector *can* fail upon inspection if
the database connectivity was lost on a prior action. This is because
the last database transport is potentially bad and fails upon load for
the transaction. The cache can then end up with an "error" state entry,
which upon retrying can fail becasue it is already in error state

Because there really are no guarentees regarding database failures,
the best thing to do is to not trust the prior cache state if it is
in error and to reset it to starting upon new introspection requests.
This prevents operators from *having* to perform process restarts to
force all loads to be from the database unless they manage to have a
multi-inspector cluster and get another inspector node to inspect in
the mean time.

Change-Id: I04ae1d54028862642d043f3a8f3af99405863325
Story: 2008344
Task: 41246
Related: rhbz#1947147
(cherry picked from commit d972dc93cd)
2021-10-04 18:04:04 +00:00
..
cmd Merge "No need to import print function anymore" 2020-05-15 12:20:48 +00:00
common Use correct Node id attribute 2020-11-23 12:38:35 +00:00
conductor Add leader election for periodic sync with ironic 2020-07-02 12:17:28 +02:00
conf Revert "Power off before inspection" 2020-11-18 01:30:39 +00:00
locale/en_GB/LC_MESSAGES Imported Translations from Zanata 2020-06-17 08:07:35 +00:00
migrations Fix database migrations and disable the non-standalone job 2020-10-27 08:49:26 +01:00
plugins Use port.id instead of port.uuid 2021-03-24 12:58:29 +00:00
pxe_filter pxe filter - option to always block unknown hosts 2020-09-28 12:18:00 +02:00
test Ignored error state cache for new requests 2021-10-04 18:04:04 +00:00
__init__.py Switch to pbr 2015-06-18 16:09:07 +02:00
alembic.ini Add alembic migrations for the inspector database 2015-09-23 14:44:46 +01:00
api_tools.py Stop using six library 2019-12-17 09:23:01 +01:00
db.py Added scope to introspection rules. 2020-03-26 21:40:43 +01:00
introspect.py Revert "Power off before inspection" 2020-11-18 01:30:39 +00:00
introspection_state.py Fix pycodestyle warnings/errors now visible with hacking 1.1.0 2018-05-08 23:46:05 +02:00
known_accelerators.yaml Add NVIDIA V100 to known accelerator devices 2020-09-14 09:54:28 +02:00
main.py Use correct Node id attribute 2020-11-23 12:38:35 +00:00
node_cache.py Ignored error state cache for new requests 2021-10-04 18:04:04 +00:00
policy.py Add request context and policy enforcement 2017-10-13 11:55:52 +00:00
process.py Use openstacksdk for ironic module 2020-03-23 14:28:09 +01:00
rules.py Log outcome of `check_conditions` method. 2020-08-11 14:34:10 +02:00
utils.py Fix node id vs uuid in processing_logger_prefix 2021-02-18 15:25:12 +00:00
version.py Use Reno for release notes management 2015-11-26 10:12:14 +01:00
wsgi_service.py Split API and conductor services 2019-08-12 15:29:55 +08:00