码迷,mamicode.com
首页 > Web开发 > 详细

ERROR (ConnectionError): HTTPConnectionPool (Caused by <class 'socket.error'>: [Errno 111] Connecti

时间:2015-07-21 17:07:19      阅读:251      评论:0      收藏:0      [点我收藏+]

标签:openstack

突然有一天使用 nova list  出现错误了

root@openstackcloud1:~# nova list

ERROR: HTTPConnectionPool(host=‘openstackcloud1‘, port=35357): Max retries exceeded with url: /v2.0/tokens (Caused by <class ‘socket.error‘>: [Errno 111] Connection refused)


原因是  nova-api service   没有启动起来

结果启动 还失败了

# service openstack-nova-api restart
Redirecting to /bin/systemctl restart  openstack-nova-api.service
Job for openstack-nova-api.service failed. See ‘systemctl status openstack-nova-api.service‘ and ‘journalctl -xn‘ for details.

通过查询错误日志 /var/log/nova/nova-api.log

看到如下错误:

2015-07-21 04:11:30.800 6879 ERROR nova.wsgi [-] Could not bind to 0.0.0.0:8775

原因是

openstack-nova-api and openstack-nova-metadata-api both run on the same port so you are getting "Address already in use" error.Try stopping "openstack-nova-metadata-api" service and run "openstack-nova-api".

只需两步

# service openstack-nova-metadata-api stop

# service openstack-nova-api restart

成功了

[root@localhost Desktop]# service openstack-nova-metadata-api stop
Redirecting to /bin/systemctl stop  openstack-nova-metadata-api.service
[root@localhost Desktop]# service openstack-nova-api restart
Redirecting to /bin/systemctl restart  openstack-nova-api.service


版权声明:本文为博主原创文章,未经博主允许不得转载。

ERROR (ConnectionError): HTTPConnectionPool (Caused by <class 'socket.error'>: [Errno 111] Connecti

标签:openstack

原文地址:http://blog.csdn.net/qq_21398167/article/details/46987669

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!