glance/glance
Dan Smith 35e6c57bc9 Fix failing namespace list delete race
If a namespace is deleted by another client while we are doing a
namespace list operation, we will fail the list with NotFound if we
try to pull the resource_type_associations list. The latter re-queries
the DB for the namespace and will raise NotFound to us. This is
especially bad because the namespace being deleted need not even
belong to the caller of the list, as is the case in a tempest run.

This makes us catch the failure and continue the operation, reporting
no associations so that the client gets a consistent view and no
error.

Closes-Bug: #1973631
Change-Id: I09fc9164a08f42507d2aec44c5b382a72f232571
2022-05-16 12:29:55 -07:00
..
api Fix failing namespace list delete race 2022-05-16 12:29:55 -07:00
async_ Change default value for [wsgi]/python_interpreter 2022-03-01 09:44:13 -08:00
cmd Remove final six usage 2022-01-27 16:37:20 +00:00
common Change default value for [wsgi]/python_interpreter 2022-03-01 09:44:13 -08:00
db Update migration constant 2022-04-21 05:50:44 +00:00
domain Fix overwriting of existing tags while creating new tags 2022-02-16 05:45:06 +00:00
hacking Remove remaining six.moves usage 2022-01-27 16:37:11 +00:00
image_cache Remove final six usage 2022-01-27 16:37:20 +00:00
locale Imported Translations from Zanata 2022-04-20 02:36:00 +00:00
policies Added a new API to expose store info 2022-02-16 05:46:47 +00:00
quota [APIImpact] Quota usage API 2022-02-03 09:55:50 -08:00
tests Fix failing namespace list delete race 2022-05-16 12:29:55 -07:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Merge "Add get_ksa_client() helper" 2021-03-02 19:41:57 +00:00
gateway.py Move Tasks policy checks in the API 2021-08-23 15:51:28 +00:00
housekeeping.py Add housekeeping module and staging cleaner 2021-03-03 14:36:46 -08:00
i18n.py Raise hacking to latest 2.0.0 release 2020-03-27 14:11:08 -05:00
location.py Use LOG.warning instead of deprecated LOG.warn 2022-01-19 11:36:12 +09:00
notifier.py Fix overwriting of existing tags while creating new tags 2022-02-16 05:45:06 +00:00
opts.py Added cli_opts and cache_opts 2022-05-10 13:45:22 +00:00
schema.py Remove six.iteritems usage 2021-12-21 13:01:56 +00:00
scrubber.py Use LOG.warning instead of deprecated LOG.warn 2022-01-19 11:36:12 +09:00
version.py Add support for oslo.reports 2019-09-20 05:17:58 +00:00