Ask Your Question
0

swift keystone configuration no handlers 401 failure

asked 2014-06-16 16:08:53 -0500

amxmachine gravatar image

updated 2014-08-19 12:47:48 -0500

briancline gravatar image

Hi,

I am setting up a solo swift environment using keystone authentication. after following these instructions... http://docs.openstack.org/icehouse/install-guide/install/apt/content/keystone-install.html (http://docs.openstack.org/icehouse/in...)

I came into an issue at the beginning of this guide. http://docs.openstack.org/icehouse/install-guide/install/apt/content/general-installation-steps-swift.html (http://docs.openstack.org/icehouse/in...)

for this step: $ keystone user-create --name=swift --pass=** --email=@**.com

I get this error: No handlers could be found for logger "keystoneclient.client" Invalid user / password (HTTP 401)

I found one answer on the web saying I need to make sure my $SERVICE_TOKEN is the same as the admin token I generated, but I cannot find this $SERVICE_TOKEN variable anywhere. am I looking in the right direction?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2014-06-19 14:26:27 -0500

amxmachine gravatar image

updated 2014-06-19 14:27:25 -0500

While bootstrapping the identity v2 (did not realize v3 is out) I have to type in commands as follows to get them to work

keystone --token secrettoken --endpoint http://127.0.0.1:35357/v2.0/

this is because my environment variables are screwy. even, 1. using the export command and 2. sourcing a .sh file did not fix my issues. I probably misconfigured something along the lines (the tenantName I posted below seemed out of place), but I am just going to reinstall and try v3 since its dev.

edit flag offensive delete link more
0

answered 2014-06-17 00:01:09 -0500

Please also check out http://docs.openstack.org/admin-guide... To troubleshoot the Identity service, review the logs in the /var/log/keystone/keystone.log file. The logs show the components that have come in to the WSGI request, and ideally show an error that explains why an authorization request failed. If you do not see the request in the logs, run keystone with --debug parameter. Pass the --debug parameter before the command parameters.

edit flag offensive delete link more

Comments

I got around to running debug on it and this is what I get minus the traceback.

keystone --debug user-create --name swift --tenant_id swift --pass secretpassword --email me@secretdomain.com

connect: (localhost, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: localhost:5000\r\nContent-Length: 113 \r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-age nt: python-keystoneclient\r\n\r\n{"auth": {"tenantName": "johnswift", "passwor dCredentials": {"username": "keystonehost admin account", "password": "keystone host admin password"}}}' reply: 'HTTP/1.1 401 Not Authorized\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Tue, 17 Jun 2014 21:06:07 GMT header: Transfer-Encoding: chunked No handlers could be found for logger "keystoneclient.client" send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: localhost:5000\r\nContent-Length: 113 \r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\nuser-age nt: python-keystoneclient\r\n\r\n{"auth": {"tenantName": "johnswift ...(more)

amxmachine gravatar imageamxmachine ( 2014-06-17 13:28:22 -0500 )edit
0

answered 2014-06-16 16:27:38 -0500

SERVICE_TOKEN is environment variable. Type keystone, you will see all the varaibles and their environment equivalent

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: 2014-06-16 16:08:53 -0500

Seen: 341 times

Last updated: Jun 19 '14