nova Errno: [Errno 111] Connection refused 错误

本文介绍了解决在单节点部署Nova-network FlatDHCP模式时遇到的问题。配置文件/etc/nova/nova.conf中的enabled_apis参数设置不正确会导致一系列错误。正确的设置应该是enabled_apis=ec2,osapi_compute,并且需要重启nova服务。

在部署单节点 nova-network FlatDHCP模式时,安装配置完所有组件,仍出现如下错误:



使用nova的相关命令均会出现上述错误。


解决办法:

应该是在配置文件/etc/nova/nova.conf中设置了“enabled_apis=metadata",现在需要将其改为”enabled_apis=ec2,osapi_compute“,然后重启nova相关服务,该问题即解决。


[root@controller ~]# systemctl restart openstack-nova-api.service [root@controller ~]# systemctl enable openstack-cinder-api.service openstack-cinder-scheduler.service Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-cinder-api.service to /usr/lib/systemd/system/openstack-cinder-api.service. Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-cinder-scheduler.service to /usr/lib/systemd/system/openstack-cinder-scheduler.service. [root@controller ~]# systemctl start openstack-cinder-api.service openstack-cinder-scheduler.service [root@controller ~]# openstack volume service list Unable to establish connection to http://controller:8776/v2/18576ed9ce534761a4599e64a22076a0/os-services: HTTPConnectionPool(host='controller', port=8776): Max retries exceeded with url: /v2/18576ed9ce534761a4599e64a22076a0/os-services (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f9f129291d0>: Failed to establish a new connection: [Errno 111] Connection refused',)) [root@controller ~]# cinder service-list ERROR: Unable to establish connection to http://controller:8776/v3/18576ed9ce534761a4599e64a22076a0/os-services: HTTPConnectionPool(host='controller', port=8776): Max retries exceeded with url: /v3/18576ed9ce534761a4599e64a22076a0/os-services (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f35cc7ca050>: Failed to establish a new connection: [Errno 111] Connection refused',)) 解决
最新发布
11-10
[root@node-a ~]# sudo yum makecache Loaded plugins: fastestmirror Determining fastest mirrors * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com base | 3.6 kB 00:00:00 epel | 4.3 kB 00:00:00 extras | 2.9 kB 00:00:00 openstack-queens | 3.0 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/19): base/7/x86_64/group_gz | 153 kB 00:00:00 (2/19): epel/x86_64/group | 399 kB 00:00:00 (3/19): epel/x86_64/updateinfo | 1.0 MB 00:00:00 (4/19): epel/x86_64/prestodelta | 592 B 00:00:00 (5/19): base/7/x86_64/other_db | 2.6 MB 00:00:01 (6/19): epel/x86_64/primary_db | 8.7 MB 00:00:05 (7/19): extras/7/x86_64/filelists_db | 305 kB 00:00:00 (8/19): extras/7/x86_64/primary_db | 253 kB 00:00:00 (9/19): extras/7/x86_64/other_db | 154 kB 00:00:00 (10/19): epel/x86_64/other_db | 4.1 MB 00:00:02 (11/19): epel/x86_64/filelists_db | 15 MB 00:00:10 (12/19): openstack-queens/primary_db | 1.2 MB 00:00:03 (13/19): openstack-queens/filelists_db | 3.4 MB 00:00:05 (14/19): openstack-queens/other_db | 495 kB 00:00:00 (15/19): updates/7/x86_64/filelists_db | 15 MB 00:00:04 base/7/x86_64/filelists_db FAILED http://mirrors.aliyuncs.com/centos/7/os/x86_64/repodata/d6d94c7d406fe7ad4902a97104b39a0d8299451832a97f31d71653ba982c955b-filelists.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused" Trying other mirror. base/7/x86_64/primary_db FAILED http://mirrors.cloud.aliyuncs.com/centos/7/os/x86_64/repodata/6d0c3a488c282fe537794b5946b01e28c7f44db79097bb06826e1c0c88bad5ef-primary.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused" Trying other mirror. (16/19): base/7/x86_64/filelists_db | 7.2 MB 00:00:02 (17/19): base/7/x86_64/primary_db | 6.1 MB 00:00:03 updates/7/x86_64/primary_db FAILED http://mirrors.aliyuncs.com/centos/7/updates/x86_64/repodata/f19044932626155f0cd849e88972b84875fc85e3308b4d622844a911c4ef54d0-primary.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.aliyuncs.com:80; Connection refused" Trying other mirror. updates/7/x86_64/other_db FAILED http://mirrors.cloud.aliyuncs.com/centos/7/updates/x86_64/repodata/14ff80eeb5b7c2c703cb151b97a17a9cec41fbe5c820b6e73a015d522e02bfe7-other.sqlite.bz2: [Errno 14] curl#7 - "Failed connect to mirrors.cloud.aliyuncs.com:80; Connection refused" Trying other mirror. (18/19): updates/7/x86_64/other_db | 1.6 MB 00:00:00 (19/19): updates/7/x86_64/primary_db | 27 MB 00:00:06 Metadata Cache Created
10-03
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值