Incorrect output in the console when you delete a non-existent image with glance client v2
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Bug:
When you delete a nonexistent image in the console returns html error code (404).
Steps to reproduce:
1. Execute following command: glance image-create --name 'Test' --container-format bare --disk-format qcow2 --file <DOWNLOADED_IMAGE> --progress
2. Wait image to upload and take image <UPLOADED_IMAGE_ID>
3. Execute glance image-delete <UPLOADED_IMAGE_ID>
4. Repeat execute the previous command of glance: image-delete <UPLOADED_IMAGE_ID>
Example output:
[root@node-8 ~]# glance image-create --name 'Test' --container-format bare --disk-format qcow2 --file cirros-
[======
+------
| Property | Value |
+------
| checksum | 50bdc35edb03a38
| container_format | bare |
| created_at | 2015-06-24T12:31:38 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | cbf27de9-
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | Test |
| owner | 70d78a337a78429
| protected | False |
| size | 9761280 |
| status | active |
| updated_at | 2015-06-24T12:31:39 |
| virtual_size | None |
+------
[root@node-8 ~]# glance image-delete cbf27de9-
[root@node-8 ~]# glance image-delete cbf27de9-
<html>
<head>
<title>404 Not Found</title>
</head>
<body>
<h1>404 Not Found</h1>
Image cbf27de9-
</body>
</html> (HTTP 404): Unable to delete image cbf27de9-
[root@node-8 ~]#
Changed in python-glanceclient: | |
status: | New → Confirmed |
This issue is already fixed in latest python-glanceclient code: /github. com/openstack/ python- glanceclient/ blob/master/ glanceclient/ v1/shell. py#L367
https:/