---
title: OpenStack创建连接时提示[Errno 111] Connection refused的解决方法
description: "执行openstack network agent list命令时，提示如下信息："
url: https://www.hikunpeng.com/document/detail/zh/kunpengcpfs/troubleshooting/trouble/kunpengopenstackstein_09_0013.html
sourcePath: /source/zh/kunpengcpfs/troubleshooting/trouble/kunpengopenstackstein_09_0013.html
indexId: 1b7a406ae88b78a40460c17c66dcbe68018fb5de06dd634a0d8941d8e3874a8b81
---
# 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',))
```


#### 关键过程、根本原因分析

neutron-server配置错误导致服务异常。


#### 结论、解决方案及效果

1. 检查配置。
  检查“/etc/neutron/neutron.conf”文件中[database]中的connection是否正确。

2. 重启关于Neutron的所有服务。

```
systemctl restart neutron-server.service
```
