我要评分
获取效率
正确性
完整性
易理解

"[Errno 111] Connection refused" Displayed During OpenStack Connection Creation

Symptom

The following information is displayed when the openstack network agent list command is executed:

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',))

Key Process and Cause Analysis

The neutron-server configuration is incorrect.

Conclusion and Solution

  1. Check the configuration.

    Check whether connection in the [database] section of the /etc/neutron/neutron.conf file is correct.

  2. Restart all Neutron-related services.
    systemctl restart neutron-server.service