Unclear behavior in V1 API when deleting a pending_delete image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
James Li |
Bug Description
Glance version: Grizzly-rc1
'delay_delete' is ON in the following tests.
v1 api behavior
1st deletion:
- image status changes to 'pending_delete'
- Delete metadata (marked as deleted)
- return 200 - OK
2nd deletion:
- image status changes to 'deleted'.
- But still leave the image data for scrubber to delete.
- return 200- OK
3rd deletion:
- image status is still 'deleted'
- still leave the image data for scrubber to delete.
- return 403 - Forbidden
v2 api behavior
1st deletion:
- status changes to pending_delete
- return 204 No Content
2nd deletion
- status is still pending_delete
- return 404 Not Found
3rd deletion
- status is still pending_delete
- return 404 Not Found
So V2 behavior looks more clear and consistent, however v1 behavior looks vague.
Changed in glance: | |
importance: | Undecided → Medium |
Changed in glance: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | havana-1 → 2013.2 |
Thanks for the clear description. It seems like we would get more clarity if the second deletion through v1 returned 403 Forbidden. Do you agree?