Can't re-use an ID from a previously deleted image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hi all,
Steps to reproduce it:
$ glance image-create --name foo
+------
| Property | Value |
+------
| checksum | None |
| container_format | None |
| created_at | 2013-05-06T16:08:34 |
| deleted | False |
| deleted_at | None |
| disk_format | None |
| id | c3313eda-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | foo |
| owner | 19292b3b597b4ec
| protected | False |
| size | 0 |
| status | queued |
| updated_at | 2013-05-06T16:08:34 |
+------
$ glance image-delete c3313eda-
$ glance image-create --name foo --id c3313eda-
Request returned failure status.
409 Conflict
An image with identifier c3313eda-
(HTTP 409)
I use the grizzly stable branch from Ubuntu cloud archive, same behavior on the debian packages.
Cheers
Changed in glance: | |
status: | New → Invalid |
Changed in glance: | |
status: | Invalid → In Progress |
assignee: | nobody → Fei Long Wang (flwang) |
Changed in glance: | |
importance: | Undecided → Wishlist |
tags: | added: propose-close |
Changed in glance: | |
assignee: | Fei Long Wang (flwang) → nobody |
status: | In Progress → New |
From my view of the design, when storing images in glance, there will be a status field which identifies whether the image is deleted, if so, the image id is still in DB and as a result, there would be duplicate id returned. But I think the response message should be enhanced in order to avoid confusion