500 error when deleting an in-use image from Ceph

Bug #1345942 reported by Feilong Wang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Feilong Wang

Bug Description

If user create an image with Ceph backend driver, and then create an instance based on the image. As a result, user will run into a 500 error.

After investigation, seems we're raising exception.InUseByStore() at the https://github.com/openstack/glance/blob/master/glance/store/rbd.py#L290 if there image is still in use. But no code to catch the error at REST API layer.

Feilong Wang (flwang)
Changed in glance:
assignee: nobody → Fei Long Wang (flwang)
importance: Undecided → High
Feilong Wang (flwang)
description: updated
Changed in glance:
importance: High → Medium
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/108289

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/108289
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=4d75cce7226db44533d891d7524ef28793734a7c
Submitter: Jenkins
Branch: master

commit 4d75cce7226db44533d891d7524ef28793734a7c
Author: Fei Long Wang <email address hidden>
Date: Mon Jul 21 18:47:37 2014 +1200

    Catch exception.InUseByStore at API layer

    If user create an image with Ceph backend driver, and then create
    an instance based on the image. As a result, user will run into
    500 error when deleting the image. Because rbd driver is raising
    exception.InUseByStore()at [1] when the image is in use, but no
    code to catch the exception at REST API layer.

    [1] https://github.com/openstack/glance/blob/master/glance/store/rbd.py#L290

    Closes-Bug: 1345942

    Change-Id: I350c235944aab226dc96de169be2087e2b599ab4

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