[Bug 1480960] Re: glance client silently ignores --owner parameter

Raga lahari raga.lahari at tcs.com
Thu Aug 6 10:26:47 UTC 2015


I tested with glance client  0.15.0 and It works fine with the expected
behaviour that's it  lists the images belonging to specified tenant.

The behaviour as per implementation is it does not send the owner ID in the curl REST API request calls .
Instead in response it receives all images and filters based on owner parameter and lists only the specified tenant images.

-- 
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 silently ignores --owner parameter

Status in ubuntu-cloud-archive:
  New
Status in python-glanceclient:
  Incomplete

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