创建虚拟机时,提示No valid host was found解决办法

1、http://blog.csdn.net/yxwmzouzou/article/details/43892261

2、http://www.cnblogs.com/kevingrace/p/6015732.html

dashboard页面上创建云主机时发现没有可以使用的可用域,于是登录控制节点查看服务状态

nova service-list

发现nova-compute 的Status为disabled,state为down,disable reason为AUTO: Failed to connect to libvirt, 无论如何重启都起不来,然后想到computer节点是装在另一台机器上的,于是去computer节点查看

systemctl status openstack-nova-compute.service

发现有错误抛出,并且提示:

HypervisorUnavailable: Connection to the hypervisor is broken on host: computer

于是输入export LIBVIRT_DEFAULT_URI=qemu:///system

然后重启服务:

systemctl restart openstack-nova-compute.service

此时再查看状态为正常,再返回控制节点查看nova service-list发现节点已经起来了

在dashboard上点击某些页面会提示服务不存在或无效,查看openstack endpoint list,发现keystone少了个internal接口,于是添加

openstack endpoint create --region RegionOne identity internal http://$HOSTNAME:35357/v2.0

如需删除endpoint

 openstack endpoint delete e74a790be75e49d9b3e53d24ed1c06f4

 在dashboard上创建或启动虚拟机等操作在nova-manage.log(记不清具体哪个日志了)总是报错:

ERROR oslo.messaging._drivers.impl_rabbit [req-b15a657e-8c7a-486d-9a80-7f6013724353 ] AMQP server on controller:5672 is unreachable: [Errno 111] 

查了下配置发现cinder里的conf文件缺少memcache service的配置参数,于是补充memcache service = controller:11211

重启cinder服务

现在nova-conductor.log里一直报 A recoverable connection/channel error occurred, trying to reconnect: [Errno 32] Broken pipe,继续研究

原文地址:https://www.cnblogs.com/slqt/p/6632148.html