OpenStack Image Management (Glance)
Go to file
Mike Fedosin 5447e8419d 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 correcly handle
auth exceptions from registry server.

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

Conflicts:
	glance/api/v1/upload_utils.py
        (Kilo catches NotFound instead of ImagenotFound)

Change-Id: I17a66eca55bfb83107046910e69c4da01415deec
(cherry picked from commit 50e3a7c58a9862206d92fef577540c5b144ecbf0)
2015-10-01 15:44:56 +00:00
doc/source Eventlet green threads not released back to pool 2015-03-11 03:38:48 -07:00
etc Eventlet green threads not released back to pool 2015-03-11 03:38:48 -07:00
glance Cleanup chunks for deleted image if token expired 2015-10-01 15:44:56 +00:00
rally-scenarios Fix rally performance job in glance 2014-08-08 02:57:58 +04:00
tools Merge "colorizer: use staticmethod rather than classmethod" 2014-06-19 18:06:40 +00:00
.coveragerc Update .coveragerc 2013-02-06 16:47:06 +02:00
.gitignore Switch to testrepository for running tests 2014-01-29 08:30:55 +08:00
.gitreview Opening stable/juno 2014-10-16 16:54:05 +02: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 Add CONTRIBUTING.rst 2014-07-01 09:32:54 +08:00
HACKING.rst Enforce using six.text_type() over unicode() 2014-09-18 09:51:04 +00:00
LICENSE Add a LICENSE file. 2012-01-03 10:14:01 -05:00
MANIFEST.in Update version code from oslo. 2013-01-13 14:27:48 -08:00
README.rst Glance Metadata Definitions Catalog - Seed 2014-08-28 10:47:36 -04:00
babel.cfg Added first step of babel-based translations. 2012-02-28 02:00:37 -08:00
openstack-common.conf Move to oslo.db 2014-07-21 12:31:10 +03:00
pylintrc Packaging fixups 2010-10-21 15:51:44 -04:00
requirements.txt Updated from global requirements 2015-08-22 19:13:00 +00:00
run_tests.sh Fix Jenkins translation jobs 2014-04-03 20:13:12 +02:00
setup.cfg Bump stable/juno version to 2014.2.4 2015-04-13 10:41:29 -07:00
setup.py Updated from global requirements 2015-07-28 21:28:54 +00:00
test-requirements.txt Prevent image status being directly modified via v1 2015-09-22 21:18:12 +02:00
tox.ini Add specific docs build option to tox 2014-09-24 00:18:44 +00: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: * Official Glance documentation * Official Client documentation