delete image emits failure message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Kui Shi |
Bug Description
When upgrading Openstack, we need backup the vm, and restore them in new version of openstack. so we may need to save
the vm snapshot image named by its vm uuid.
If we "glance image-create" the vm image, and name it with "uuid", then delete it, there will be failure message:
Request returned failure status.
But it indeed "removed" the vm. ( marked as "deleted" in database).
The message should not be emitted.
step to reproduce:
1. create a image, and assign the name with a 'uuid'.
# glance image-create --name 5d5b7329-
+------
| Property | Value |
+------
| checksum | 64d7c1cd2b6f60c
| container_format | bare |
| created_at | 2014-08-22T07:26:17 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 0e7e8257-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | 5d5b7329-
| owner | 2c39eaafe4e347f
| protected | False |
| size | 13167616 |
| status | active |
| updated_at | 2014-08-22T07:26:18 |
| virtual_size | None |
+------
2. confirm the image is uploaded.
# glance image-list |grep 5d5b7329-
| 0e7e8257-
3. delete the image
# glance image-delete 5d5b7329-
Request returned failure status.
4. the image can not be listed.
# glance image-list |grep 5d5b7329-
5. the image is marked as "deleted" in database.
mysql> select id,name,deleted from glance.images where name='5d5b7329-
+------
| id | name | deleted |
+------
| 0e7e8257-
+------
Changed in glance: | |
assignee: | nobody → Kui Shi (skuicloud) |
Hello Kui,
What is that failure status you mentioned? For me it looks like it works, so could you please give bit more details what is the actual issue here?
- Erno