HTTP 409 error being masked as HTTP 500 on image delete
Bug #1551037 reported by
Chris Buccella
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Confirmed
|
High
|
Danny Al-Gaaf | ||
Mitaka |
Confirmed
|
High
|
Danny Al-Gaaf | ||
Newton |
Triaged
|
High
|
sudhakar kumar srivastava |
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.
To post a comment you must log in.
Could you please mention API version you are using, Thanks!