OpenStack创建连接时提示[Errno 111] Connection refused的解决方法
问题现象描述
执行openstack network agent list命令时,提示如下信息:
Unable to establish connection to http://controller:9696/v2.0/agents: HTTPConnectionPool(host='controller', port=9696): Max retries exceeded with url: /v2.0/agents (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0xffffb2bf5710>: Failed to establish a new connection: [Errno 111] Connection refused',))
关键过程、根本原因分析
token过期或者不可用,需要重新获取token。
结论、解决方案及效果
- 重新获取token。
openstack token issue
- 重启关于Neutron的所有服务。
systemctl restart neutron-server.service \ neutron-linuxbridge-agent.service neutron-dhcp-agent.service \ neutron-metadata-agent.service
父主题: OpenStack Stein