Ask Your Question
0

Authorization Failed: Unable to establish connection to h ttp://controller/v2.0/tokens from other computers

asked 2016-06-22 14:59:16 -0500

fch0528 gravatar image

Hi all,

I am facing a keystone authentication failure problem for several days.

For the same command (Let's say, keystone --debug --os-username=admin --os-password=nova --os-auth-url=h ttp://10.155.136.40:35357/v2.0 token-get), if I run it locally on the controller node, it can get the token. However, if I execute it on another server which has installed python-keystoneclient, it shows errors as below:

DEBUG:keystoneclient.session:REQ: curl -i -X POST h ttp://10.155.136.40:35357/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"passwordCredentials": {"username": "admin", "password": "nova"}}}' INFO:urllib3.connectionpool:Starting new HTTP connection (1): 10.155.136.40 Authorization Failed: Unable to establish connection to h ttp://10.155.136.40:35357/v2.0/tokens

I can login the dashboard successfully, and the keystone service is enabled. But I do not understand "identity (native backend)", does it matter? Otherwise, everything works fine locally on the controller node. Current server can ping the controller successfully, and there is no firewall service on.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-06-29 06:17:53 -0500

dstanek gravatar image

This looks like a connection error to me. keystone is probably working fine since horizon and local use are working. Have you checked that the server you are running the command on can actually talk to the keystone server? Lots of networking stuff can go wrong like routing, firewalls, etc.

If you are running horizon on the same server as keystone you should also check that keystone is listening to incoming connections on the correct interface.

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: 2016-06-22 14:59:16 -0500

Seen: 319 times

Last updated: Jun 22 '16