Image is not clean when uploading image kill glance process

Bug #1243127 reported by lizheming
34
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Glance
Confirmed
Undecided
Unassigned

Bug Description

version: the latest
steps:
1. glance service is OK, upload a image
2. at the same time, kill glance process
3. restart glance service,get the info of this image, the status is "saving"
4. delete this image, but the image data on disk is not cleaned up
cmd:
curl -i -H "Content-Type:application/octet-stream" -H "X-Auth-Token:3e5f9562e9cc4e5f968fe2866bfe0edf" -X PUT -T test.img http://127.0.0.1:9292/v2/images/$image_id/file

Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :
Revision history for this message
lizheming (lizheming-li) wrote :

thanks Zhi Yan LIu.
bug 1217838 described that image has deleted but creat image success.
this bug describe that image has deleted but image data is not clean up.
so this is differet bug. I think.

lizheming (lizheming-li)
Changed in glance:
assignee: nobody → lizheming (lizheming-li)
lizheming (lizheming-li)
Changed in glance:
assignee: lizheming (lizheming-li) → nobody
Changed in glance:
assignee: nobody → Pranali Deore (pranali-deore)
Ian Cordasco (icordasc)
Changed in glance:
assignee: Pranali Deore (pranali-deore) → nobody
status: New → Confirmed
Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :

Since currently we save image location to db only when image chunks got saved, so, even user executes 'image-delete' when glance-api comes back, from glance's eyes there's no any locations belong with that 'bad' image. so, the chunks couldn't be removed any more.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers