← Back to team overview

yahoo-eng-team team mailing list archive

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

 

It appears that nova relies completely on glance for the error code and
hence the fix at one point in glance is enough to fix this bug. Marking
this nova side of the fix as 'Invalid' post chatting with Nikhil on IRC.

** Changed in: nova
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
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):
  Confirmed
Status in OpenStack Compute (Nova):
  Invalid

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


References