glance v2 api should delete an image if it was deleted during upload

Bug #1226013 reported by Sridevi Koushik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Sridevi Koushik

Bug Description

Glance V2 api does not initiate a deletion if the image was marked deleted during upload. In V1, exception.NotFound is caught and a deletion is initiated.

For instance, in the upload method of v2/image_data.py, if an image is deleted during set_data, the image_repo.save throws an exception. But, the image's chunks are left behind.

description: updated
description: updated
description: updated
Changed in glance:
assignee: nobody → Sridevi Koushik (sridevik)
description: updated
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/47314

Changed in glance:
status: New → In Progress
Changed in glance:
importance: Undecided → Medium
milestone: none → icehouse-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/47314
Committed: http://github.com/openstack/glance/commit/00ff9367f25d34ea43aceb40a6146d8d53e5c06f
Submitter: Jenkins
Branch: master

commit 00ff9367f25d34ea43aceb40a6146d8d53e5c06f
Author: sridevik <email address hidden>
Date: Thu Sep 19 01:34:59 2013 -0500

    The V2 Api should delete a non existent image

    Glance V2 api initiates the deletion of an image that
    got deleted during upload. This ensures that there
    are no orphaned chunks of the image left behind

    Fixes bug #1226013

    Change-Id: I4cf5c49d2a6d2157a38467d9f7bcb20c4562b642

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/85883

Thierry Carrez (ttx)
Changed in glance:
milestone: icehouse-1 → 2014.1
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.