Staging area not cleared if image is deleted while importing
If multiple stores configured in glance and Image is deleted while import
operation is in progress then image data stays in staging area
(filesystem backend) and there is no other way than clearing it
manually.
Modified delete method to delete the data from staging area if image is
deleted while import operation is in progress.
Conflicts: glance/api/v2/images.py glance/async_/flows/api_image_import.py glance/common/store_utils.py
NOTE: Conflicts occured due to reserved store capability is not
available in Stein.
Change-Id: Ib58accd6514e589dccde57fe063815b1ab1ce496
Closes-Bug: #1855417
(cherry picked from commit 5d15f073718328380f2d847e4abfb9307536d810)
Reviewed: https:/ /review. opendev. org/701891 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=149ea050cc5 8f39eaf9b4660bb 8f0271b99d03da
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit 149ea050cc58f39 eaf9b4660bb8f02 71b99d03da
Author: Abhishek Kekane <email address hidden>
Date: Fri Dec 6 10:35:55 2019 +0000
Staging area not cleared if image is deleted while importing
If multiple stores configured in glance and Image is deleted while import
operation is in progress then image data stays in staging area
(filesystem backend) and there is no other way than clearing it
manually.
Modified delete method to delete the data from staging area if image is
glance/ api/v2/ images. py
glance/ async_/ flows/api_ image_import. py
glance/ common/ store_utils. py
deleted while import operation is in progress.
Conflicts:
NOTE: Conflicts occured due to reserved store capability is not
available in Stein.
Change-Id: Ib58accd6514e58 9dccde57fe06381 5b1ab1ce496 80f2d847e4abfb9 307536d810)
Closes-Bug: #1855417
(cherry picked from commit 5d15f0737183283