← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1446326] [NEW] 403 response from Nova when making a DELETE call for an image in pending_delete

 

Public bug reported:

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_deleted=True flag by default.

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".

** Affects: glance
     Importance: Medium
         Status: New

** Affects: nova
     Importance: Undecided
         Status: New

** Also affects: nova
   Importance: Undecided
       Status: New

** Changed in: glance
   Importance: Undecided => Medium

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

Title:
  403 response from Nova when making a DELETE call for an image in
  pending_delete

Status in OpenStack Image Registry and Delivery Service (Glance):
  New
Status in OpenStack Compute (Nova):
  New

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_deleted=True flag by default.

  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".

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


Follow ups

References