403 response from Nova when making a DELETE call for an image in pending_delete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Opinion
|
Medium
|
Unassigned | ||
OpenStack Compute (nova) |
Invalid
|
Low
|
Sudipta Biswas |
Bug Description
Context and information:
-------
Currently, 404 is seen by the user when "image-delete" call is made via the Glance API or through the Images API of Nova for an Image in "deleted" status.
However, if an Image is in "pending_delete" and a user with the UUID of that Image tries "image-delete" call from the Nova API, she gets a back a 403 which is not consistent. The user should get a 404 back.
Notes:
----------
* The user needs to specify the UUID, name is not sufficient.
* For "image-show" call the user is able to see the Image in DELETED status with the appropriate metadata for Image in "deleted" or "pending_delete" status in Glance as nova passes-in the force_show_
Feedback needed and action to be taken:
-------
Nova should be able to return a 404 back to the user while issuing a "image-delete" call if the Image is flagged deleted in the Glance DB (deleted=True), irrespective of the Image status in "deleted" or "pending_delete".
Changed in glance: | |
importance: | Undecided → Medium |
description: | updated |
Changed in nova: | |
assignee: | nobody → Sudipta Biswas (sbiswas7) |
Changed in glance: | |
status: | New → Confirmed |
Changed in glance: | |
assignee: | Sudipta Biswas (sbiswas7) → nobody |
status: | In Progress → Incomplete |
status: | Incomplete → Opinion |
change error code should be fine , no backward compatible issue exist