glance/glance/api
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
..
middleware Merge "Setting default max_request_id_length to 64" 2015-09-23 18:51:54 +00:00
v1 Cleanup chunks for deleted image if token expired 2015-10-01 18:07:14 +00:00
v2 Cleanup chunks for deleted image if token expired 2015-10-01 18:07:14 +00:00
v3 Fixed the output of list artifacts API calls 2015-09-22 10:44:06 +03:00
__init__.py Disable v3 API by default 2015-09-03 23:02:26 +03:00
authorization.py Remove duplicate name attribute 2015-08-07 03:05:08 -07:00
cached_images.py Add logging when policies forbid an action 2015-04-15 17:59:37 +02:00
common.py Remove unused imported marker functions 2015-06-29 05:57:37 +00:00
policy.py Merge "Fix few typos in glance" 2015-08-08 17:55:50 +00:00
property_protections.py hacking: upgrade to 0.9.x serie 2014-10-06 14:41:03 +02:00
versions.py Don't return 300 when requesting /versions 2015-09-02 15:03:41 +02:00