[Openstack] Client debugs??

Joshua Harlow harlowja at yahoo-inc.com
Thu Apr 5 00:24:03 UTC 2012


Ah,

Odd.

If u try:

keystone  token-get  --debug

U get: keystone: error: unrecognized arguments: --debug

But if u do it before it works, odd. Guess that's a "false" message/error.

On 4/4/12 5:20 PM, "Yong Sheng Gong" <gongysh at cn.ibm.com> wrote:

I think it supports --debug.
look at shell commands below.

[root at robinlinux gongys]# keystone  user-list
+----------------------------------+---------+-------------------+-------+
|                id                | enabled |       email       |  name |
+----------------------------------+---------+-------------------+-------+
| 81ced34d11954800906096555539c885 | True    | admin at example.com | admin |
+----------------------------------+---------+-------------------+-------+
[root at robinlinux gongys]# keystone --debug user-list
connect: (localhost, 35357)
connect fail: ('localhost', 35357)
connect: (localhost, 35357)
send: 'GET /v2.0/users HTTP/1.1\r\nHost: localhost:35357\r\nx-auth-token: ADMIN\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
header: Vary: X-Auth-Token
header: Content-Length: 137
header: Date: Fri, 06 Apr 2012 00:19:37 GMT
+----------------------------------+---------+-------------------+-------+
|                id                | enabled |       email       |  name |
+----------------------------------+---------+-------------------+-------+
| 81ced34d11954800906096555539c885 | True    | admin at example.com | admin |
+----------------------------------+---------+-------------------+-------+
[root at robinlinux gongys]#




-----openstack-bounces+gongysh=cn.ibm.com at lists.launchpad.net wrote: -----

To: openstack <openstack at lists.launchpad.net> <mailto:openstack at lists.launchpad.net>
From: Joshua Harlow <harlowja at yahoo-inc.com> <mailto:harlowja at yahoo-inc.com>
Sent by: openstack-bounces+gongysh=cn.ibm.com at lists.launchpad.net
Date: 04/05/2012 08:12AM
Subject: [Openstack] Client debugs??

Hi all,

I was just using the keystone client program `keystone`

And I was seeing these options.

usage: keystone [--os_username <auth-user-name>]
                [--os_password <auth-password>]
                [--os_tenant_name <auth-tenant-name>]
                [--os_tenant_id <tenant-id>] [--os_auth_url <auth-url>]
                [--os_region_name <region-name>]
                [--os_identity_api_version <identity-api-version>]
                [--token <service-token>] [--endpoint <service-endpoint>]
                [--username <auth-user-name>] [--password <auth-password>]
                [--tenant_name <tenant-name>] [--auth_url <auth-url>]
                [--region_name <region-name>]
                <subcommand> ...

Do these clients have anything like a debug mode/flag (ie --debug, --verbose...)? Is that accessible via a log file right now?

That would seem useful to see the WS calls that are being made (and any other goodies)...

-Josh _______________________________________________
Mailing list: https://launchpad.net/~openstack <https://launchpad.net/%7Eopenstack>
Post to     : openstack at lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack <https://launchpad.net/%7Eopenstack>
More help   : https://help.launchpad.net/ListHelp


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120404/171e0b34/attachment.html>


More information about the Openstack mailing list