← Back to team overview

yahoo-eng-team team mailing list archive

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

 

** Also affects: glance/newton
   Importance: Undecided
       Status: New

** Changed in: glance/newton
       Status: New => Triaged

** Changed in: glance/newton
   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/1551037

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

Status in Glance:
  Confirmed
Status in Glance mitaka series:
  Confirmed
Status in Glance newton series:
  Triaged

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


References