glance/glance/tests
Zhi Yan Liu 0dc8fbb347 Cleanup chunks for deleted image that was 'saving'
Currently image data cannot be removed synchronously for an image that
is in saving state. 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. However, by the limitation of the design we
cannot enforce a global quota check for the image in saving status.

This change introduces a inconsonance between http response codes of
v1 and v2 APIs. The status codes which we will now see after the upload
process completes on an image which was deleted mid way are:

v1: 412 Precondition Failed
v2: 410 Gone

SecurityImpact
UpgradeImpact
APIImpact

Closes-Bug: 1383973
Closes-Bug: 1398830
Closes-Bug: 1188532

Change-Id: I47229b366c25367ec1bd48aec684e0880f3dfe60
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2015-01-15 15:56:56 +00:00
..
etc Adding Metadef Tag support 2014-12-17 19:45:40 +00:00
functional Removed obsolete db_auto_create configuration option 2014-12-24 08:09:30 +00:00
integration Wrong order of assertEquals args(Glance) 2014-11-13 17:10:09 +02:00
unit Cleanup chunks for deleted image that was 'saving' 2015-01-15 15:56:56 +00:00
var New -k/--insecure command line option 2012-02-13 13:57:13 +00:00
__init__.py Fix getaddrinfo if dnspython is installed 2014-12-05 09:29:16 +00:00
stubs.py Reduce extraneous test output 2014-10-13 13:38:05 -04:00
test_hacking.py Enforce using six.text_type() over unicode() 2014-09-18 09:51:04 +00:00
utils.py Update glance.openstack.common.policy and cleanup 2014-12-01 15:08:58 +08:00