Fork me on GitHub

Unable to establish connection to http://controller:35357/v3/auth/tokens: HTTPConnectionPool(host='controller', port=35357)

安装OpenStack环境,已经部署好安装好keystone,在进行验证的时候,首先要去获取接口版本号,但是一直报错无法创建链接

报错如下

Discovering versions from the identity service failed when creating the password plugin. Attempting to determine version from URL.
Unable to establish connection to http://controller:35357/v3/auth/tokens: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f7e5025f5d0>: Failed to establish a new connection: [Errno 113] No route to host',))

查看keystone日志无异常;

网上说要查看httpd是否监听了35357端口,查看已经监听了

 

 

 

有的说要重启httpd,systemctl status httpd。返现并没有用

 

 

 

还有说要配置no_proxy的,我是单点部署,不适用

后来想了想,按照会不会是配置文件的问题,检查配置文件里配置了当前节点是computer1,但是我安装的是控制节点,这个连接调用的时候是调的controller,怀疑是不是hosts的问题

 

 

  这里写成206了。我这里是因为之前是多节点部署,现在改成单点部署了,所以这里要重新配置一下,配置完之后再进行安装,完美解决所有问题。

 

posted @ 2021-11-12 11:38  超级花心大萝卜  阅读(2451)  评论(0)    收藏  举报