Openstack Keystone : No handlers could be found for logger "keystoneclient.client"
When I hit the the command
you get the following response
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.
Keystone user-listI get the following error
No handlers could be found for logger "keystoneclient.client"If you run the command in debug mode
Invalid OpenStack Identity credentials.
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.
How do you check the SERVICE_TOKEN variable?
ReplyDeleteJust type on Console
Delete> echo $SERVICE_TOKEN
If it prints the value then the variable is set.
I see following error :
ReplyDelete[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 ??
your data base is empty
ReplyDeletesubtegbran_za Tom Lamp https://www.beingfree.net/profile/Are-Teachers-Giving-Too-Much-Homework-Essay/profile
ReplyDeletehardrenrealess