← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1345942] [NEW] 500 error when deleting an in-use image from Ceph

 

Public bug reported:

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
and the image is deleted from Glance but it's still existed in Ceph.

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.

** Affects: glance
     Importance: High
     Assignee: Fei Long Wang (flwang)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Fei Long Wang (flwang)

** Changed in: glance
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1345942

Title:
  500 error when deleting an in-use image from Ceph

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

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 and the image is deleted from Glance but it's still existed in
  Ceph.

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1345942/+subscriptions


Follow ups

References