← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1551037] [NEW] HTTP 409 error being masked as HTTP 500 on image delete

 

Public bug reported:

Using ceph for image storage.

When calling image-delete on an in-use image:

<html>
 <head>
  <title>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  The server has either erred or is incapable of performing the requested operation.<br /><br />

 </body>
</html> (HTTP 500)

Though the log shows:

glance.common.wsgi InUseByStore: The image cannot be deleted because it
is in use through the backend store outside of Glance.

I would expect that this return HTTP 409.

In the code (images.py), I see an except clause for
exception.InUseByStore, but the RBD driver is raising a different type
of exception.

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  HTTP 409 error being masked as HTTP 500 on image delete

Status in Glance:
  New

Bug description:
  Using ceph for image storage.

  When calling image-delete on an in-use image:

  <html>
   <head>
    <title>500 Internal Server Error</title>
   </head>
   <body>
    <h1>500 Internal Server Error</h1>
    The server has either erred or is incapable of performing the requested operation.<br /><br />

   </body>
  </html> (HTTP 500)

  Though the log shows:

  glance.common.wsgi InUseByStore: The image cannot be deleted because
  it is in use through the backend store outside of Glance.

  I would expect that this return HTTP 409.

  In the code (images.py), I see an except clause for
  exception.InUseByStore, but the RBD driver is raising a different type
  of exception.

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


Follow ups