delete deleted image 500 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Brant Knudson |
Bug Description
When you delete an image that you just deleted, you get a 500 Internal Server Error.
This can be recreated with devstack:
1) delete an image
2) delete the same image
Here's an example:
$ nova image-list
+------
| ID | Name | Status | Server |
+------
| caa6c969-
| 8af603da-
| fe67d4e1-
+------
$ nova image-delete caa6c969-
$ nova image-delete caa6c969-
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-1254f8a5-
If you delete a deleted image, the server should respond with some error code other than 500.
I'd suggest '403 Forbidden' since the image still exists (not sure why DELETE of a resource doesn't actually delete it, but whatever). You can still see it with nova image-show.
Changed in nova: | |
assignee: | nobody → Brant Knudson (blk-u) |
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
milestone: | none → grizzly-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
I should note that this behavior occurs when you authenticate as an admin user. When you authenticate as a regular user (like demo), you get 404 Not Found.