← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1138666] Re: delete deleted image 500 error

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => grizzly-rc1

-- 
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/1138666

Title:
  delete deleted image 500 error

Status in OpenStack Compute (Nova):
  Fix Released

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-0f32-466b-8e8e-a7e0ac835470 | cirros-0.3.1-x86_64-uec         | ACTIVE |        |
  | 8af603da-b69f-49c6-8e52-25632eccb31c | cirros-0.3.1-x86_64-uec-kernel  | ACTIVE |        |
  | fe67d4e1-baca-4968-8638-2314373b620b | cirros-0.3.1-x86_64-uec-ramdisk | ACTIVE |        |
  +--------------------------------------+---------------------------------+--------+--------+

  $ nova image-delete caa6c969-0f32-466b-8e8e-a7e0ac835470

  $ nova image-delete caa6c969-0f32-466b-8e8e-a7e0ac835470
  ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-1254f8a5-8dda-444a-a077-2072ab3baa6a)

  
  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.

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