Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures

openstack由于cpu未开启虚拟化,导致创建实例失败原因分析

cpu虽然支持vmx,但主板未开启,安装完openstack出现莫名其妙问题。

[root@compute1 nova]# systemctl status libvirtd.service
● libvirtd.service - Virtualization daemon
   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-06-25 20:05:45 CST; 3min 48s ago
     Docs: man:libvirtd(8)
           https://libvirt.org
 Main PID: 6106 (libvirtd)
    Tasks: 17 (limit: 32768)
   CGroup: /system.slice/libvirtd.service
           └─6106 /usr/sbin/libvirtd

Jun 25 20:05:45 compute1 systemd[1]: Starting Virtualization daemon...
Jun 25 20:05:45 compute1 systemd[1]: Started Virtualization daemon.
Jun 25 20:05:45 compute1 libvirtd[6106]: 2018-06-25 12:05:45.278+0000: 6139: info : libvirt version: 3.9.0, package: 14.el7_5.5 (CentOS BuildSystem Jun 25 20:05:45 compute1 libvirtd[6106]: 2018-06-25 12:05:45.278+0000: 6139: info : hostname: compute1
Jun 25 20:05:45 compute1 libvirtd[6106]: 2018-06-25 12:05:45.278+0000: 6139: error : virCgroupMakeGroup:1093 : Failed to create controller cpu for group: No... directory
Jun 25 20:06:30 compute1 libvirtd[6106]: 2018-06-25 12:06:30.019+0000: 6115: error : virCapabilitiesDomainDataLookupInternal:739 : invalid argument: could n...intype=kvm
Jun 25 20:06:30 compute1 libvirtd[6106]: 2018-06-25 12:06:30.019+0000: 6115: error : virCapabilitiesDomainDataLookupInternal:739 : invalid argument: could n...intype=kvm
Hint: Some lines were ellipsized, use -l to show in full.


openstack控制台错误如下:


消息
Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 7c4394d1-c7ef-4cff-9d32-4d91c2c87617.
编码
500
详情
File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 580, in build_instances raise exception.MaxRetriesExceeded(reason=msg)
已创建
June 25, 2018, 12:06 p.m.



####

解决办法:

方法1:修改/etc/nova/nova.conf,增加

[libvirt]
virt_type = qemu

方法2:开启主板cpu虚拟化功能

你可能感兴趣的:(Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures)