Can't delete an image in deleted status
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Won't Fix
|
Undecided
|
Steve Lewis |
Bug Description
I'm trying to delete an image that has a status of "deleted"
It's not deleted as I can do an image-show and it returns plus I can see it in image_locations and it exists in the backend which for us is swift
glance image-show 17c6077c-
+------
| Property | Value |
+------
| checksum | c9ef771d317595f
| container_format | bare |
| created_at | 2014-05-22T07:58:23 |
| deleted | True |
| deleted_at | 2014-05-23T02:16:53 |
| disk_format | raw |
| id | 17c6077c-
| is_public | True |
| min_disk | 10 |
| min_ram | 0 |
| name | XXXXXX |
| owner | XXXXX |
| protected | False |
| size | 10737418240 |
| status | deleted |
| updated_at | 2014-05-23T02:16:53 |
+------
glance image-delete 17c6077c-
Request returned failure status.
404 Not Found
Image 17c6077c-
(HTTP 404): Unable to delete image 17c6077c-
description: | updated |
Changed in glance: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in glance: | |
assignee: | Abhishek Talwar (abhishek-talwar) → nobody |
Changed in glance: | |
assignee: | nobody → Steve Lewis (steve-lewis) |
The image-show in v1 does indeed show deleted images (i.e. having 'status' equal to 'deleted' - this is a "by design" behaviour for v1). An attempt to delete such an image should also cause 404 error.
The strange thing is that your images do not get removed from the backend storage though: this looks like a bug indeed.