OpenStack Image Management (Glance)
Go to file
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
doc/source Merge "Setting default max_request_id_length to 64" 2015-09-23 18:51:54 +00:00
etc Add Large pages meta definition 2015-09-29 22:33:32 +00:00
glance Cleanup chunks for deleted image if token expired 2015-10-01 15:43:59 +00:00
rally-jobs Port rally scenario plugin to new Rally framework 2015-08-27 09:51:11 -07:00
tools Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:26:41 +00:00
.gitignore Add .eggs/* to .gitignore 2015-07-09 12:34:45 +00:00
.gitreview Add .gitreview config file for gerrit. 2011-10-24 11:02:16 -04:00
.mailmap Add a mailmap entry for myself 2014-02-11 12:00:44 +08:00
.testr.conf Switch to testrepository for running tests 2014-01-29 08:30:55 +08:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:36 +00:00
HACKING.rst Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
LICENSE Add a LICENSE file. 2012-01-03 10:14:01 -05:00
MANIFEST.in Remove old traces of the oslo-incubator 2015-09-09 09:11:05 +02:00
README.rst Fix rendering of readme document 2015-01-07 11:07:06 +00:00
babel.cfg Added first step of babel-based translations. 2012-02-28 02:00:37 -08:00
pylintrc Typo in pylintrc file 2015-03-25 11:21:16 +01:00
requirements.txt Updated from global requirements 2015-09-24 01:01:31 +00:00
run_tests.sh Remove old traces of the oslo-incubator 2015-09-09 09:11:05 +02:00
setup.cfg Open Mitaka development 2015-09-25 16:06:00 +02:00
setup.py Updated from global requirements 2015-09-24 01:01:31 +00:00
test-requirements.txt Updated from global requirements 2015-09-08 22:02:10 +00:00
tox.ini Remove redundant requirements.txt from tox. 2015-09-25 06:52:38 +12:00

README.rst

Glance

Glance is a project that defines services for discovering, registering, retrieving and storing virtual machine images.

Use the following resources to learn more: