FileSystem Store: Deleting an image that is uploading leaves data behind

Bug #1176177 reported by Alex Meade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Jared Culp

Bug Description

When an image resource is deleted while the image data is being uploaded, and is allowed to complete, the image data remains in the data store. I only tested this with the filesystem datastore and the entire image remained. I would assume that currently this will happen for any data store since there does not appear to be any cleanup if this happens.

To Reproduce:

1) Begin uploading image
2) Delete image that is uploading
3) allow upload to complete
4) Image data is in data store

Alex Meade (alex-meade)
Changed in glance:
assignee: nobody → Alex Meade (alex-meade)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/28807

Alex Meade (alex-meade)
summary: - Deleting an image that is uploading leaves data behind
+ FileSystem Store: Deleting an image that is uploading leaves data behind
Jared Culp (jared-culp)
Changed in glance:
assignee: Alex Meade (alex-meade) → Jared Culp (jared-culp)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/36083

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/33986
Committed: http://github.com/openstack/glance/commit/c283bd07725cfc0a3834ab46fd28f1da6d51bb19
Submitter: Jenkins
Branch: master

commit c283bd07725cfc0a3834ab46fd28f1da6d51bb19
Author: Jared Culp <email address hidden>
Date: Mon Jul 8 10:02:24 2013 -0400

    Deleting image that is uploading leaves data

    Need to clean up the backing store if an image is deleted in the middle of an upload.

    bug 1176177

    Change-Id: I77722fd0aaf5ea8a06b4303e2b0cb1ad2929b0f0

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → havana-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.