glance/glance/api/v2
Mike Fedosin fc32f0554d 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 18:07:14 +00:00
..
model Merge "Add operators to provide multivalue support" 2015-03-11 06:57:54 +00:00
__init__.py Empty files shouldn't contain copyright nor license 2013-12-24 22:39:05 -06:00
image_actions.py Remove string formatting from policy logging 2015-05-01 20:01:43 +01:00
image_data.py Cleanup chunks for deleted image if token expired 2015-10-01 18:07:14 +00:00
image_members.py Fix error message's format in image_member 2015-07-29 16:26:59 +08:00
image_tags.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
images.py Merge "Fix image owner can't be changed issue in v2" 2015-08-17 18:48:55 +00:00
metadef_namespaces.py Correct the indentation on a few functions 2015-08-09 05:02:53 +00:00
metadef_objects.py Correct the indentation on a few functions 2015-08-09 05:02:53 +00:00
metadef_properties.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
metadef_resource_types.py Use dictionary literal for dictionary creation 2015-08-07 06:00:35 -07:00
metadef_tags.py Use oslo_utils.encodeutils.exception_to_unicode() 2015-07-17 18:31:03 +02:00
router.py Add ability to deactivate an image 2015-03-13 14:21:11 -04:00
schemas.py Don't use slashes for long lines - use parentheses instead 2015-08-16 07:21:13 +00:00
tasks.py Merge "Use dictionary literal for dictionary creation" 2015-09-22 07:32:23 +00:00