← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1389110] [NEW] 'glance member-list' CLI lists information with wrong tenant-id

 

Public bug reported:

"glance member-list" CLI with wrong tenant-id returns "200 OK"  and
generate information while it is expected 404 Not Found.

Below are the command execution logs-

$ keystone tenant-list
+----------------------------------+----------+---------+
|                id                |   name   | enabled |
+----------------------------------+----------+---------+
| a1c37cc595024369aa2124b50adaa0b8 |  admin   |   True  |
| 31dd5bdca08e4ce0b208ef618142875b | cephtest |   True  |
| 944ffc3c82f0444488eb7f61bc77bef0 |   demo   |   True  |
| ed34d901e2314ab6a93e01ebad44e445 | service  |   True  |
+----------------------------------+----------+---------+


$ glance --debug member-list  --tenant-id 31dd5bd
curl -i -X GET -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'Accept-Encoding: gzip, deflate, compress' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}bf02401aa8b7a79b29e5db2c015bee9d111ea600' http://controller:9292/v1/shared-images/31dd5bd

HTTP/1.1 200 OK
date: Tue, 04 Nov 2014 07:44:49 GMT
content-length: 21
content-type: application/json; charset=UTF-8
x-openstack-request-id: req-398f3434-d5d1-4d22-a126-c4edcd6b7cfd

{"shared_images": []}

+----------+-----------+-----------+
| Image ID | Member ID | Can Share |
+----------+-----------+-----------+
+----------+-----------+-----------+

** Affects: glance
     Importance: Undecided
     Assignee: Ankur Gupta (ankur-gupta-v)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Ankur Gupta (ankur-gupta-v)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1389110

Title:
  'glance member-list' CLI lists information with wrong tenant-id

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  "glance member-list" CLI with wrong tenant-id returns "200 OK"  and
  generate information while it is expected 404 Not Found.

  Below are the command execution logs-

  $ keystone tenant-list
  +----------------------------------+----------+---------+
  |                id                |   name   | enabled |
  +----------------------------------+----------+---------+
  | a1c37cc595024369aa2124b50adaa0b8 |  admin   |   True  |
  | 31dd5bdca08e4ce0b208ef618142875b | cephtest |   True  |
  | 944ffc3c82f0444488eb7f61bc77bef0 |   demo   |   True  |
  | ed34d901e2314ab6a93e01ebad44e445 | service  |   True  |
  +----------------------------------+----------+---------+

  
  $ glance --debug member-list  --tenant-id 31dd5bd
  curl -i -X GET -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'Accept-Encoding: gzip, deflate, compress' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}bf02401aa8b7a79b29e5db2c015bee9d111ea600' http://controller:9292/v1/shared-images/31dd5bd

  HTTP/1.1 200 OK
  date: Tue, 04 Nov 2014 07:44:49 GMT
  content-length: 21
  content-type: application/json; charset=UTF-8
  x-openstack-request-id: req-398f3434-d5d1-4d22-a126-c4edcd6b7cfd

  {"shared_images": []}

  +----------+-----------+-----------+
  | Image ID | Member ID | Can Share |
  +----------+-----------+-----------+
  +----------+-----------+-----------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1389110/+subscriptions


Follow ups

References