zoukankan      html  css  js  c++  java
  • 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了。我这里是因为之前是多节点部署,现在改成单点部署了,所以这里要重新配置一下,配置完之后再进行安装,完美解决所有问题。

  • 相关阅读:
    模板方法模式
    抽象工厂模式
    工厂方法模式
    简单工厂模式
    策略模式
    原型模式
    单例模式
    遍历一个二维数组的简便方法(减少foreach次数)
    数组最后一个元素的 引用在 foreach 循环之后仍会保留。建议使用 unset() 来将其销毁
    PHP 中for循环的一个小小改进
  • 原文地址:https://www.cnblogs.com/czp2016/p/15543774.html
Copyright © 2011-2022 走看看