[Bug 1480960] Re: glance client silently ignores --owner parameter
James Page
james.page at ubuntu.com
Thu Sep 17 08:40:25 UTC 2015
Actually this does exist in 0.15.0 as well; but you only hit this
problem if the image-list call gets paginated due to a large number of
images.
I think it was fixed in https://github.com/openstack/python-
glanceclient/commit/f98ab688eff8fff4bdb5f650da3516715d62f232 (included
in 0.17.0) when the call to get the owner switched from pop -> get,
ensuring that its left in the filters dictionary for subsequent calls.
** Also affects: python-glanceclient (Ubuntu)
Importance: Undecided
Status: New
** Also affects: python-glanceclient (Ubuntu Trusty)
Importance: Undecided
Status: New
** Also affects: python-glanceclient (Ubuntu Wily)
Importance: Undecided
Status: New
** Also affects: python-glanceclient (Ubuntu Vivid)
Importance: Undecided
Status: New
** Changed in: cloud-archive
Importance: Medium => Low
** Changed in: python-glanceclient (Ubuntu Trusty)
Importance: Undecided => Low
** Changed in: python-glanceclient (Ubuntu Vivid)
Importance: Undecided => Low
** Changed in: python-glanceclient (Ubuntu Wily)
Importance: Undecided => Low
** Summary changed:
- glance client silently ignores --owner parameter
+ glance client ignores --owner parameter when image-list is paginated
** Changed in: python-glanceclient (Ubuntu Trusty)
Status: New => Triaged
** Changed in: python-glanceclient (Ubuntu Vivid)
Status: New => Triaged
** Changed in: python-glanceclient (Ubuntu Wily)
Status: New => Fix Released
** Changed in: cloud-archive
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ubuntu-cloud-archive.
https://bugs.launchpad.net/bugs/1480960
Title:
glance client ignores --owner parameter when image-list is paginated
Status in ubuntu-cloud-archive:
Triaged
Status in python-glanceclient:
Incomplete
Status in python-glanceclient package in Ubuntu:
Fix Released
Status in python-glanceclient source package in Trusty:
Triaged
Status in python-glanceclient source package in Vivid:
Triaged
Status in python-glanceclient source package in Wily:
Fix Released
Bug description:
Glance client accepts --owner as parameter, but ignores it (does not
send to the server).
Steps to reproduce:
1. Create few images for different tenants
2. Configure environment for the administrator user
3. Request glance image-list --owner=tenant1_uuid
Expected behavior:
List of the images belonging to specified tenant.
Actual behavior:
List of all images.
Snippet from --debug output:
glance --debug image-list --owner=9a4fadf4481e40ad8ddf421a00d9d330
curl -i -X GET -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'X-Auth-Token: ***' --cert None --key None https://lab.internal:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20&is_public=None
glance --version
0.14.0
ii python-glanceclient 1:0.14.0-0ubuntu1~cloud0
all Client library for Openstack glance server.
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1480960/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list