ERROR (Connectionerror): Httpconnectionpool (caused by <class & #39;socket.error& #39; >: [Errno 111] Connecti

Source: Internet
Author: User

感谢朋友支持本博客。欢迎共同探讨交流,因为能力和时间有限,错误之处在所难免。欢迎指正!
假设转载,请保留作者信息。
博客地址:http://blog.csdn.net/qq_21398167

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

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

[email protected]:~# nova list

ERROR:Httpconnectionpool(Host=' OPENSTACKCLOUD1 ',Port=35357):Maxretries exceeded withURL:/v2.0/Tokens(caused by<class' Socket.error ':[Errno111]Connectionrefused)


原因是  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

成功了

[[email protected] Desktop]# service openstack-nova-metadata-api stop
Redirecting to /bin/systemctl stop  openstack-nova-metadata-api.service
[[email protected] Desktop]# service openstack-nova-api restart
Redirecting to /bin/systemctl restart  openstack-nova-api.service


ERROR (Connectionerror): Httpconnectionpool (caused by &lt;class & #39;socket.error& #39; &gt;: [Errno 111] Connecti

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.