Incorrect output in the console when you delete a non-existent image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Fix Released
|
Medium
|
MOS Glance |
Bug Description
Using iso #521.
Bug:
When you delete a nonexistent image in the console returns html error code (404).
Steps to reproduce:
1. Deploy Juno on CentOS 6.5.
2. Go to controller node with SSH and use . openrc.
3. Execute following command: glance image-create --name 'Test' --container-format bare --disk-format qcow2 --file <DOWNLOADED_IMAGE> --progress
4. Wait image to upload and take image <UPLOADED_IMAGE_ID>
5. Execute glance image-delete <UPLOADED_IMAGE_ID>
6. 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 ~]#
tags: |
added: python-glanceclient removed: glance |
Glance bug in upstream: /bugs.launchpad .net/python- glanceclient/ +bug/1468336
https:/