glance/glance
Mike Fedosin 301bf5108a Cleanup chunks for deleted image if token expired
In patch I47229b366c25367ec1bd48aec684e0880f3dfe60 it was
introduced the logic that if image was deleted during file
upload when we want to update image status from 'saving'
to 'active' it's expected to get Duplicate error and delete
stale chunks after that. But if user's token is expired
there will be Unathorized exception and chunks will stay
in store and clog it.
And when, the upload operation for such an image is
completed the operator configured quota can be exceeded.

This patch fixes the issue of left over chunks for an image
which was deleted from saving status, by correctly handle
auth exceptions from registry server.

Partial-bug: #1498163

Change-Id: I17a66eca55bfb83107046910e69c4da01415deec
2015-10-01 15:43:59 +00:00
..
api Cleanup chunks for deleted image if token expired 2015-10-01 15:43:59 +00:00
artifacts Merge "Fixed an HTTP 500 on artifact blob upload" 2015-09-22 04:15:52 +00:00
async Use stevedore directive to document plugins. 2015-08-27 13:48:32 +01:00
cmd Scrub images in parallel 2015-09-15 11:49:16 -05:00
common Merge "Use dictionary literal for dictionary creation" 2015-09-22 07:32:23 +00:00
contrib Fix Python 3 issues 2015-06-12 09:15:02 +00:00
db Merge "Fixed the output of list artifacts API calls" 2015-09-22 14:41:24 +00:00
domain Fix wrong parameters order in Task 2015-09-17 10:23:11 +08:00
hacking Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
image_cache Merge "Use dictionary literal for dictionary creation" 2015-09-22 07:32:23 +00:00
locale Imported Translations from Zanata 2015-09-28 06:09:20 +00:00
quota Move to graduated oslo.log module 2015-03-12 11:48:24 +00:00
registry Merge "reuse the deleted image-member before create a new image-member" 2015-09-22 07:32:28 +00:00
tests Cleanup chunks for deleted image if token expired 2015-10-01 15:43:59 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
context.py Simplify context by using oslo.context 2015-02-02 09:51:52 +01:00
gateway.py Remove Catalog Index Service 2015-07-30 09:34:57 +08:00
i18n.py Drop use of 'oslo' namespace package 2015-04-28 18:57:45 +00:00
location.py Add image signing verification 2015-09-02 17:02:03 -04:00
notifier.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
opts.py Update Glance example configs to reflect Liberty 2015-09-23 22:25:43 +00:00
schema.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
scrubber.py Fixes the possibility of leaving orphaned data 2015-09-17 19:01:27 +00:00
version.py Remove vim header 2014-01-14 16:03:28 +00:00