zoukankan      html  css  js  c++  java
  • Unable to establish connection to tokens

    安装openstack后遇到的第一个问题。

    执行命令nova list得到如下结果:

    [root@localhost ~(keystone_admin)]# nova list
    No handlers could be found for logger "keystoneauth.identity.generic.base"
    ERROR (ConnectFailure): Unable to establish connection to http://10.20.0.14:5000/v2.0/tokens
     
    猜测可能是keystone没有开启
    查看service的状况

    1.[root@localhost ~(keystone_admin)]# openstack-status
    == Nova services ==
    openstack-nova-api:                     active
    openstack-nova-compute:                 active
    openstack-nova-network:                 inactive  (disabled on boot)
    openstack-nova-scheduler:               active
    openstack-nova-cert:                    active
    openstack-nova-conductor:               active
    openstack-nova-console:                 inactive  (disabled on boot)
    openstack-nova-consoleauth:             active
    openstack-nova-xvpvncproxy:             inactive  (disabled on boot)
    == Glance services ==
    openstack-glance-api:                   active
    openstack-glance-registry:              active
    == Keystone service ==
    openstack-keystone:                     inactive  (disabled on boot)
    == Horizon service ==
    openstack-dashboard:                    uncontactable
    == neutron services ==
    neutron-server:                         failed
    neutron-dhcp-agent:                     active
    neutron-l3-agent:                       active
    neutron-metadata-agent:                 active
    neutron-openvswitch-agent:              active
    neutron-metering-agent:                 active
    == Swift services ==
    openstack-swift-proxy:                  active
    openstack-swift-account:                active
    openstack-swift-container:              active
    openstack-swift-object:                 active
    == Cinder services ==
    openstack-cinder-api:                   active
    openstack-cinder-scheduler:             active
    openstack-cinder-volume:                active
    openstack-cinder-backup:                active
    == Ceilometer services ==
    openstack-ceilometer-api:               inactive  (disabled on boot)
    openstack-ceilometer-central:           active
    openstack-ceilometer-compute:           active
    openstack-ceilometer-collector:         active
    openstack-ceilometer-notification:      active
    == Heat services ==
    openstack-heat-api:                     active
    openstack-heat-api-cfn:                 inactive  (disabled on boot)
    openstack-heat-api-cloudwatch:          inactive  (disabled on boot)
    openstack-heat-engine:                  active
    == Support services ==
    mysqld:                                 inactive  (disabled on boot)
    openvswitch:                            active
    dbus:                                   active
    target:                                 active
    rabbitmq-server:                        active
    memcached:                              active
    == Keystone users ==
    /usr/lib/python2.7/site-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
      'python-keystoneclient.', DeprecationWarning)
    /usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py:145: DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
      'the 2.0.0 release.', DeprecationWarning)
    /usr/lib/python2.7/site-packages/keystoneclient/v2_0/client.py:147: DeprecationWarning: Using the 'tenant_name' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_name' argument instead
      super(Client, self).__init__(**kwargs)
    /usr/lib/python2.7/site-packages/debtcollector/renames.py:45: DeprecationWarning: Using the 'tenant_id' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' argument instead
      return f(*args, **kwargs)
    /usr/lib/python2.7/site-packages/keystoneclient/httpclient.py:371: DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
      'the 2.0.0 release.', DeprecationWarning)
    /usr/lib/python2.7/site-packages/keystoneclient/session.py:140: DeprecationWarning: keystoneclient.session.Session is deprecated as of the 2.1.0 release in favor of keystoneauth1.session.Session. It will be removed in future releases.
      DeprecationWarning)
    /usr/lib/python2.7/site-packages/keystoneclient/auth/identity/base.py:56: DeprecationWarning: keystoneclient auth plugins are deprecated as of the 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in future releases.
      'in future releases.', DeprecationWarning)
    Authorization Failed: Unable to establish connection to http://10.20.0.14:5000/v2.0/tokens
    == Glance images ==
    Unable to establish connection to http://10.20.0.14:5000/v2.0/tokens
    == Nova managed services ==
    No handlers could be found for logger "keystoneauth.identity.generic.base"
    ERROR (ConnectFailure): Unable to establish connection to http://10.20.0.14:5000/v2.0/tokens
    == Nova networks ==
    No handlers could be found for logger "keystoneauth.identity.generic.base"
    ERROR (ConnectFailure): Unable to establish connection to http://10.20.0.14:5000/v2.0/tokens
    == Nova instance flavors ==
    No handlers could be found for logger "keystoneauth.identity.generic.base"
    ERROR (ConnectFailure): Unable to establish connection to http://10.20.0.14:5000/v2.0/tokens
    == Nova instances ==
    No handlers could be found for logger "keystoneauth.identity.generic.base"
    ERROR (ConnectFailure): Unable to establish connection to http://10.20.0.14:5000/v2.0/tokens
     
    红色部分确定是keyston没有启动。
    运行命令启动
    启动keystone:
    systemctl start openstack-keystone
     
    问题解决!
  • 相关阅读:
    关于postman使用上发现的一点问题
    关于异步的处理方法
    关于console.log() 打印得引用类型得数据得相关问题
    使用electron将单页面vue webapp 打包成 PC端应用
    当后台只接受字符串得时候,在传输复杂得数据得时候会发生得问题
    默认事件
    事件冒泡
    offsetWidth clientWidth scrollWidth 三者之间的区别和联系
    事件获取目标 currentTarget target srcElement三者之间的区别和联系
    不支持模块化规范的插件可以使用import 导入的原因
  • 原文地址:https://www.cnblogs.com/felixwa/p/5793528.html
Copyright © 2011-2022 走看看