Glance V2 image create does not throw exception when the image is deleted during upload

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

Bug Description

Steps to reproduce the bug:

1. Create a image using glance V2 api.
2. delete the image before the create call returns.
3. Verify that the image record is marked as deleted.
4. The create call returns with a success response.

This is not the behaviour in V1, where it responds with a 412.

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

Changed in glance:
status: New → In Progress
Changed in glance:
milestone: none → havana-rc1
importance: Undecided → Medium
Changed in glance:
assignee: Sridevi Koushik (sridevik) → Amala Basha (amalabasha)
Changed in glance:
assignee: Amala Basha (amalabasha) → Sridevi Koushik (sridevik)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/44801
Committed: http://github.com/openstack/glance/commit/26a47e77238e98b25d5943cfa7f24cb20304580c
Submitter: Jenkins
Branch: master

commit 26a47e77238e98b25d5943cfa7f24cb20304580c
Author: sridevik <email address hidden>
Date: Mon Sep 16 06:29:24 2013 -0500

    Respond with 410 after upload if image was deleted

    When updating the image after upload, we should return an
    HTTPGone instead of a 500 error if the image cannot
    be found.
    This will provide more information to nova when this occurs
    during snapshotting.

    Fixes bug #1217838

    Change-Id: I6e9875a9ff95ed3e9c38685785473138327ad4a1

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: havana-rc1 → 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.