yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #48461
[Bug 1560756] Re: galnce image-show could show the deleted images.That is not reasonable
As a regular user I don't see this behaviour:
$ glance --os-image-api-version 1 image-show 5389c76a-2970-4666-9a86-1e9b24a854da
No image with a name or ID of '5389c76a-2970-4666-9a86-1e9b24a854da' exists.
$ glance --os-image-api-version 2 image-show 5389c76a-2970-4666-9a86-1e9b24a854da
404 Not Found: No image found with ID 5389c76a-2970-4666-9a86-1e9b24a854da (HTTP 404)
As an admin, I can show the image in v1 only:
$ glance --os-image-api-version 2 image-show 5389c76a-2970-4666-9a86-1e9b24a854da
404 Not Found: No image found with ID 5389c76a-2970-4666-9a86-1e9b24a854da (HTTP 404)
$ glance --os-image-api-version 1 image-show 5389c76a-2970-4666-9a86-1e9b24a854da
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 4215f4b77571603bee82ef427ea0ef84 |
| container_format | bare |
| created_at | 2016-03-23T10:35:21.000000 |
| deleted | True |
| deleted_at | 2016-03-23T10:35:39.000000 |
| disk_format | raw |
| id | 5389c76a-2970-4666-9a86-1e9b24a854da |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | deleted-image |
| owner | 5b0dd156a4b042d3afd720719b97b669 |
| protected | False |
| size | 37 |
| status | deleted |
| updated_at | 2016-03-23T10:35:39.000000 |
+------------------+--------------------------------------+
I'd forgotten about this v1 behaviour to be honest, but it seems to be
by design rather than a bug.
http://webcache.googleusercontent.com/search?q=cache:_H-rS1q8c0UJ:openstack.10931.n7.nabble.com/Should-deleted-glance-images-be-visible-still-td10958.html&num=1&hl=en&gl=us&strip=1&vwsrc=0
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1560756
Title:
galnce image-show could show the deleted images.That is not reasonable
Status in Glance:
Invalid
Bug description:
version :2015.1
description:
I can't see the image:
[root@2C5_10_DELL05 ~(keystone_admin)]# glance image-list| grep 000be9f8-6463-484d-b136-7f8ea9c6785c
[root@2C5_10_DELL05 ~(keystone_admin)]#
but I can show the image :
[root@2C5_10_DELL05 ~(keystone_admin)]# glance image-show 000be9f8-6463-484d-b136-7f8ea9c6785c
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| container_format | bare |
| created_at | 2016-01-29T02:01:38.000000 |
| deleted | True |
| deleted_at | 2016-01-29T02:01:39.000000 |
| disk_format | raw |
| id | 000be9f8-6463-484d-b136-7f8ea9c6785c |
| is_public | False |
| min_disk | 0 |
| min_ram | 0 |
| name | image-603465735 |
| owner | 3280818cc4ac47ed9505bcdadf8f8a0a |
| protected | False |
| status | deleted |
| updated_at | 2016-01-29T02:01:39.000000 |
+------------------+--------------------------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1560756/+subscriptions
References