創建虛擬機時,提示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,繼續研究


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM