glance/glance
Dan Smith e87d3fbbe5 Add housekeeping module and staging cleaner
As noted in previous discussions, glance should clean its staging
directory on startup. This is important for scenarios where we
started an import operation, but failed in the middle. If, when we
recover, the image has already been deleted from the database, then
we will never remove the (potentially very large) residue from disk
in our staging directory.

This is currently a problem with web-download, but will also occur
with glance-direct once we have the non-shared distributed import
functionality merged.

Conflicts:
	glance/tests/unit/common/test_wsgi_app.py: Does not exist

Closes-Bug: #1913625
Change-Id: Ib80e9cfb58680f9e8ead5993dc206f4da882dd09
(cherry picked from commit 232177e68c)
(cherry picked from commit 9467994136)
2021-07-30 09:14:52 +00:00
..
api Cleanup import status information after busting a lock 2020-09-03 08:00:35 -07:00
async_ Functional test enhancement for lock busting 2020-09-03 08:00:35 -07:00
cmd Remove all references to sheepdog 2020-04-02 15:39:57 -05:00
common Add housekeeping module and staging cleaner 2021-07-30 09:14:52 +00:00
db Handle atomic image properties separately 2020-09-03 08:00:35 -07:00
domain Add image_delete_property_atomic() helper 2020-08-25 11:34:56 -07:00
hacking Update hacking and reenable local checks 2020-04-02 18:00:44 +02:00
image_cache Merge "Fix string interpolation to delay by logging" 2020-01-10 06:51:32 +00:00
locale Imported Translations from Zanata 2020-04-26 06:42:34 +00:00
policies Merge "Add deprecation message to policy "default" rule" 2020-04-08 11:49:38 +00:00
quota Add ability to import image into multi-stores 2020-02-10 09:39:01 +01:00
registry Fix string interpolation to delay by logging 2020-01-09 08:53:55 -06:00
tests Add housekeeping module and staging cleaner 2021-07-30 09:14:52 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Add context.elevated() helper for getting admin privileges 2020-08-26 06:47:27 -07:00
gateway.py Fix for Image members not generating notifications 2016-01-25 04:50:58 -08:00
housekeeping.py Add housekeeping module and staging cleaner 2021-07-30 09:14:52 +00:00
i18n.py Raise hacking to latest 2.0.0 release 2020-03-27 14:11:08 -05:00
location.py Add possibility to delete image from single store 2020-03-13 14:46:13 +00:00
notifier.py Add ability to import image into multi-stores 2020-02-10 09:39:01 +01:00
opts.py Revert "Add reserved stores to the sample config file" 2019-09-19 12:40:34 +01: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