Ask Your Question
0

Unable to authorize user

asked 2013-05-10 07:14:01 -0500

chen-li gravatar image

I have fresh installed Grizzly.

And I can use the admin_token to run command successfully :

keystone --token ADMIN --endpoint http://192.168.11.11:35357/v2.0 user-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+---------+---------+-------+ | id | name | enabled | email | +----------------------------------+---------+---------+-------+ | 0d8d703279bc45e19cf1a3e8c5ac5445 | cinder | True | | | 6ebceb6f6c7f47ff8d1c94f3b516f0fb | glance | True | | | 99fb5ce424c247529337b13e7bab78a8 | nova | True | | | a8e799de08274eef8ace567240e3b65c | quantum | True | | | 8cbad06dd1764bae93612132ca62671d | test | True | | +----------------------------------+---------+---------+-------+

keystone --token ADMIN --endpoint http://192.168.11.11:35357/v2.0 role-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). +----------------------------------+----------+ | id | name | +----------------------------------+----------+ | 9fe2ff9ee4384b1894a90878d3e92bab | _member_ | | 00872ea74fd04700bdebecc62884a36d | admin | +----------------------------------+----------+

But when I change to use a user to do the same command, it returns the errors "Unable to authorize user"; keystone --os-username test --os-password 123456 --os-tenant-name iStack-M3 --os-auth-url http://192.168.11.11:5000/v2.0 user-list Unable to authorize user

No ERROR in keystone log:

2013-05-10 15:12:54 DEBUG [eventlet.wsgi.server] (10754) accepted ('192.168.11.11', 45523)

2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] ***** REQUEST ENVIRON ***** 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] SCRIPT_NAME = /v2.0 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] webob.adhoc_attrs = {'response': <response at="" 0x36caa50="" 200="" ok="">} 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] REQUEST_METHOD = POST 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] PATH_INFO = /tokens 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] SERVER_PROTOCOL = HTTP/1.0 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] REMOTE_ADDR = 192.168.11.11 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] CONTENT_LENGTH = 104 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] HTTP_USER_AGENT = python-keystoneclient 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] eventlet.posthooks = [] 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] RAW_PATH_INFO = /v2.0/tokens 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] REMOTE_PORT = 45523 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] eventlet.input = <eventlet.wsgi.input object="" at="" 0x3097c90=""> 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] wsgi.url_scheme = http 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] webob._body_file = (<_io.BufferedReader>, <eventlet.wsgi.input object="" at="" 0x3097c90="">) 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] SERVER_PORT = 5000 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] wsgi.input = <_io.BytesIO object at 0x3609ef0> 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] openstack.context = {'token_id': None, 'is_admin': False} 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] HTTP_HOST = 192.168.11.11:5000 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] wsgi.multithread = True 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] openstack.params = {u'auth': {u'tenantName': u'iStack-M3', u'passwordCredentials': {u'username': u'test', u'password': u'123456'}}} 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] HTTP_ACCEPT = / 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] wsgi.version = (1, 0) 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] SERVER_NAME = 192.168.11.11 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] GATEWAY_INTERFACE = CGI/1.1 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] wsgi.run_once = False 2013-05-10 15:12:54 DEBUG [keystone.common.wsgi] wsgi.errors = <open file="" '<stderr="">', mode 'w' at 0x7f894d6bc270> 2013-05-10 15:12:54 DEBUG ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-05-10 07:21:30 -0500

chen-li gravatar image

Sorry, I forgot to create an endpoint for keystone.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-05-10 07:14:01 -0500

Seen: 65 times

Last updated: May 10 '13