Glance API fail to list 'deleted' images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Won't Fix
|
Medium
|
Feilong Wang |
Bug Description
Even with user admin context, and following the API-ref for image/detail api and attempt to query deleted images will get failure for both ways.
1)
[root@node191 glance]# curl -i -X GET -H 'User-Agent: python-
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Content-Length: 14
X-Openstack-
Date: Mon, 16 Mar 2015 15:21:46 GMT
{"images": []}
2) And
[root@node191 glance]# curl -i -X GET -H 'User-Agent: python-
Will also list all the Active images without any deleted images.
It does appears that glance will never allow the filters with 'deleted' key passing from the check below.
https:/
And in registry code will never get filter with 'deleted', so 'deleted' will always being false.
https:/
Changed in glance: | |
assignee: | nobody → Fei Long Wang (flwang) |
status: | New → Confirmed |
tags: | added: kilo-rc-potential |
tags: | removed: kilo-rc-potential |
I think you're 90% of the way there. I think https:/ /github. com/openstack/ glance/ blob/master/ glance/ registry/ api/v1/ images. py#L329 shouldn't be checking deleted but instead, status. I think the proper way to filter is with `status=deleted`, we're just checking for the wrong parameter in that method.