glance/glance
Dan Smith 9cb3240b94 Make web-download revert all stores on fail
If web-download fails to stage the image, no subsequent import to
store tasks could have run. Thus, we should remove all of them from
"importing" and add them to "failed" so that it is obvious from the
outside that we failed.

This is another good reason for having the $image/tasks API, but we
also should not continue advertising "yes we're importing to $store"
when we are not.

NOTE(lyarwood): This includes a partial squashed revert of the
.zuul.yaml changes in Ifd55c44fef4e2187052d77084dc9c0fa9c9a0d16 that
removed nova-ceph-multistore. This is reintroduced here to ensure this
change resolves the stable/victoria specific bug #1919993 and the
original bug #1914826.

Change-Id: Iebbb2dcb767ecf3c965f34f1ca04af20a2039be1
Closes-Bug: #1914826
Closes-Bug: #1919993
(cherry picked from commit cbb2af6e32)
2021-03-18 15:02:29 +00:00
..
api Bump Images API version to 2.11 2020-09-30 23:45:36 +01:00
async_ Make web-download revert all stores on fail 2021-03-18 15:02:29 +00:00
cmd Make glance-api able to do async tasks in WSGI mode 2020-07-24 11:13:45 -07:00
common Support cinder multiple stores 2020-09-07 09:07:42 +00:00
db Handle atomic image properties separately 2020-08-24 06:41:13 -07:00
domain Add image_delete_property_atomic() helper 2020-08-07 12:13:22 -07:00
hacking Cleanup remove api v1 and registry code 2020-07-14 10:38:19 +00:00
image_cache Stop to use the __future__ module. 2020-06-02 20:14:31 +02:00
locale Imported Translations from Zanata 2020-06-16 07:47:50 +00:00
policies Remove unused "copy_from" policy rule 2020-07-15 13:01:58 -07:00
quota Add ability to import image into multi-stores 2020-02-10 09:39:01 +01:00
tests Make web-download revert all stores on fail 2021-03-18 15:02:29 +00:00
__init__.py
context.py Add context.elevated() helper for getting admin privileges 2020-07-10 08:59:53 -07:00
gateway.py Refactor TaskFactory and Executor to take an admin ImageRepo 2020-07-10 08:59:53 -07:00
i18n.py Raise hacking to latest 2.0.0 release 2020-03-27 14:11:08 -05:00
location.py Inspect upload/import stream and set virtual_size 2020-08-05 08:42:04 -07:00
notifier.py Add ability to import image into multi-stores 2020-02-10 09:39:01 +01:00
opts.py Add new config options in sample config generator 2020-07-28 16:06:43 +00:00
schema.py Import i18n functions directly 2015-12-07 18:20:43 +03:00
scrubber.py Fix string interpolation to delay by logging 2020-01-09 08:53:55 -06:00
version.py Add support for oslo.reports 2019-09-20 05:17:58 +00:00