keystone cli --debug does not report inbound wire traffic

Bug #932951 reported by Anthony Young
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
Wishlist
Gal Vinograd

Bug Description

Steps to reproduce:

keystone --debug service-list

Expected:

Full wire trace of inbound and outbound traffic.

Actual:

$ keystone --debug service-list
connect: (192.168.2.10, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 192.168.2.10:5000\r\nContent-Length: 102\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "secrete"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Content-Length: 2000
header: Date: Wed, 15 Feb 2012 18:04:54 GMT
connect: (192.168.2.10, 35357)
send: u'GET /v2.0/OS-KSADM/services?fresh=1329329094.86 HTTP/1.1\r\nHost: 192.168.2.10:35357\r\nx-auth-token: c7a05b28e8ce40b8b31be4b9a9f0b207\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Content-Length: 503
header: Date: Wed, 15 Feb 2012 18:04:54 GMT
+----------------------------------+----------+----------+---------------------------+
| id | name | type | description |
+----------------------------------+----------+----------+---------------------------+
| 3ca61c10aa21485fb501251810083381 | ec2 | ec2 | EC2 Compatibility Layer |
| 3e95ca6222fc4212bdf4e44f6d9fbd9b | glance | image | Glance Image Service |
| ca0f96a9ecef4a61b38f425d7f293a14 | nova | compute | Nova Compute Service |
| ea4ec4a6f02d470388998a3e47bba318 | keystone | identity | Keystone Identity Service |
+----------------------------------+----------+----------+---------------------------+

Revision history for this message
Dolph Mathews (dolph) wrote :

Is that just missing the content bodies of the reply, or is there something else you're looking for?

Changed in keystone:
importance: Undecided → Wishlist
Joseph Heck (heckj)
Changed in keystone:
status: New → Triaged
Thierry Carrez (ttx)
affects: keystone → python-keystoneclient
Changed in python-keystoneclient:
assignee: nobody → Gal Vinograd (gal-vinograd)
Revision history for this message
Dolph Mathews (dolph) wrote :

This has actually been fixed. From a current checkout of keystoneclient v0.3.0:

$ keystone --debug service-list
REQ: curl -i http://localhost:35357/v2.0/OS-KSADM/services -X GET -H "User-Agent: python-keystoneclient" -H "X-Auth-Token: ADMIN"
RESP: [200] CaseInsensitiveDict({'date': 'Fri, 05 Jul 2013 15:19:17 GMT', 'vary': 'X-Auth-Token', 'content-length': '128', 'content-type': 'application/json'})
RESP BODY: {"OS-KSADM:services": [{"id": "26144780c8724f7b8a8ab39c57f0dab0", "type": "identity", "name": "Keystone", "description": null}]}

+----------------------------------+----------+----------+-------------+
| id | name | type | description |
+----------------------------------+----------+----------+-------------+
| 26144780c8724f7b8a8ab39c57f0dab0 | Keystone | identity | |
+----------------------------------+----------+----------+-------------+

Changed in python-keystoneclient:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.