Unable to establish connection to tokens
2024-08-22 19:53:05
安装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
问题解决!
最新文章
- html5,单击显示详细信息
- 开个帖,开始学习shell编程
- js替换字符串问题
- Bootstrap页面布局1 - 下载BS(bootstrap简称)
- WinForm 资源文件的使用
- centos 5.4 安装nodejs + npm(转)
- 【python】三个变量互换值
- js渲染引擎 tempo.js
- [poj 1904]King's Quest[Tarjan强连通分量]
- qml动画控制器AnimationController
- C# Redis实战(五)
- MD1——2 Corner
- pyhon的yileld的一点笔记
- shell 启动和停止脚本
- Manacher's Algorithm &;&; 647. Palindromic Substrings 计算回文子串的算法
- postgresql数据库和mysql数据库的对比分析
- POJ3301 Texas Trip 计算几何、随机化贪心
- C语音读写文件
- ORA-12537:TNS:connectionclosed错误处理过程
- PAT甲题题解-1037. Magic Coupon (25)-贪心,水
热门文章
- BZOJ 2049 [Sdoi2008]Cave 洞穴勘测 ——Link-Cut Tree
- [转] Spring MVC sample application for downloading files
- CSS-布局【1】-图片在div中垂直居中
- static方法中为什么使用的都是静态变量
- BZOJ4378 : [POI2015]Logistyka
- document.forms[0].submit object is not a function
- [深入浅出WP8.1(Runtime)]浮出控件(Flyout)
- HTML-DOM零碎
- iphone H5 input type=";search"; 不显示搜索 解决办法
- iOS 三种收起键盘的方法