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

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

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:// 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:// -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): Authorization Failed: Unable to establish connection to h ttp://

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

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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-06-22 14:59:16 -0600

Seen: 605 times

Last updated: Jun 22 '16