Openstack Keystone : No handlers could be found for logger "keystoneclient.client"

When I hit the the command
Keystone user-list
I get the following error
No handlers could be found for logger "keystoneclient.client"
Invalid OpenStack Identity credentials.
 If you run the command in debug mode
keystone --debug user-list

you get the following response


send: 'GET /v2.0//users HTTP/1.1\r\nHost: 10.1.1.1:35357\r\nx-auth-token: 012345\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n'
reply: 'HTTP/1.1 401 Not Authorized\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Date: Wed, 16 Jan 2013 08:58:36 GMT
header: Transfer-Encoding: chunked
No handlers could be found for logger "keystoneclient.client"
connect: (10.128.176.48, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.128.176.48:5000\r\nContent-Length: 87\r\nx-auth-token: 12345\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n{"auth": {"token": {"id": "012345SECRET99TOKEN012345"}, "tenantName": "openstackDemo"}}'
reply: 'HTTP/1.1 401 Not Authorized\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Date: Wed, 16 Jan 2013 08:58:36 GMT
header: Transfer-Encoding: chunked
Traceback (most recent call last):
  File "/usr/bin/keystone", line 9, in
    load_entry_point('python-keystoneclient==0.1.3', 'console_scripts', 'keystone')()
  File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 410, in main
    OpenStackIdentityShell().main(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/keystoneclient/shell.py", line 356, in main
    raise exc.CommandError("Invalid OpenStack Identity credentials.")
keystoneclient.exceptions.CommandError: Invalid OpenStack Identity credentials.

In my case the issue was that the admin_token in keystone conf file (/etc/keystone/keystone.conf) and the token passed through environment variable SERVICE_TOKEN did not match.

Corrected the values and it started working.

Comments

  1. How do you check the SERVICE_TOKEN variable?

    ReplyDelete
    Replies
    1. Just type on Console
      > echo $SERVICE_TOKEN
      If it prints the value then the variable is set.

      Delete
  2. I see following error :
    [root@alto00 keystone]# keystone user-list
    No handlers could be found for logger "keystoneclient.v2_0.client"
    Authorization Failed: An unexpected error prevented the server from fulfilling your request. Expecting property name: line 1 column 1 (char 1) (HTTP 500)

    [root@alto00 keystone]# keystone --debug user-list
    connect: (10.10.10.64, 5000)
    send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.10.10.64:5000\r\nContent-Length: 104\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: python-keystoneclient\r\n\r\n'
    send: '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "****", "password": "******"}}}'
    reply: 'HTTP/1.1 500 Internal Server Error\r\n'
    header: Vary: X-Auth-Token
    header: Content-Type: application/json
    header: Content-Length: 193
    header: Date: Thu, 30 Jan 2014 11:54:30 GMT
    No handlers could be found for logger "keystoneclient.v2_0.client"
    Traceback (most recent call last):
    File "/usr/bin/keystone", line 9, in
    load_entry_point('python-keystoneclient==0.1.3.19', 'console_scripts', 'keystone')()
    File "/usr/lib/python2.6/site-packages/keystoneclient/shell.py", line 408, in main
    OpenStackIdentityShell().main(sys.argv[1:])
    File "/usr/lib/python2.6/site-packages/keystoneclient/shell.py", line 349, in main
    insecure=args.insecure)
    File "/usr/lib/python2.6/site-packages/keystoneclient/v2_0/client.py", line 80, in __init__
    self.authenticate()
    File "/usr/lib/python2.6/site-packages/keystoneclient/v2_0/client.py", line 110, in authenticate
    "%s" % e)
    keystoneclient.exceptions.AuthorizationFailure: Authorization Failed: An unexpected error prevented the server from fulfilling your request. Expecting property name: line 1 column 1 (char 1) (HTTP 500)


    Also, echo $SERVICE_TOKEN returns nothing..
    Any help ??

    ReplyDelete
  3. your data base is empty

    ReplyDelete

Post a Comment

Popular posts from this blog

Hibernate: a different object with the same identifier value was already associated with the session

BeanDefinitionStoreException: Failed to parse configuration class: Could not find class [javax.jms.ConnectionFactory]