错误

Ubuntu 20.04 下手动安装 OpenStack Xena 版
在创建虚拟机的时候总是失败

 openstack server create --flavor m1.nano --image cirros.0.5.2   --nic net-id=1e46c104-a455-4875-a920-e0b9a2d59e73 --security-group default   --key-name mykey provider-instance

命令行方式下,也不知道这个错误应该是查询 /var/log/nova 下的哪一个,继续安装 DashBoard 之后查看

查找原因

  1. 在 dashboard 上很容易就看到了

     消息
         Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 3ac51153-78ca-4127-9824-fcdce6768859.
     编码
         500
     详情
         Traceback (most recent call last): File "/usr/lib/python3/dist-packages/nova/conductor/manager.py", line 669, in build_instances raise exception.MaxRetriesExceeded(reason=msg) nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 3ac51153-78ca-4127-9824-fcdce6768859. 
     已创建
         2022年12月9日 08:39 
    
  2. 网上查询大都是在 compute 节点查询是否 virt_type = qemu ,确认过 /etc/nova/nova-compute.conf 文件,但是依然报错

  3. 想到 Controller 节点是不是也存在这个文件 vim /etc/nova/nova-compute.conf 果然也是有的

    是不是我安装过程中发生过什么错觉, Controller 节点也安装了 Compute 节点的东西?不记得了!

    反正照方抓药,也改成 virt_type = qemu
    然后,也是 service nova-compute restart

    再次创建,就 OK 了!

后记

命令行方式下,也不知道这个错误应该是查询 /var/log/nova 下的哪一个,那就 grep 试试

root@controller:/var/log/nova# grep -nr Exceeded *

nova-conductor.log:2:2022-12-09 08:38:11.776 1890 WARNING nova.scheduler.utils [req-a58a5759-9a1c-4b33-996a-6a393d0fef87 02754b94ca6c40f8b189a7d19b897e53 b5e1426408a048739a9f73841c9a2f09 - default default] Failed to compute_task_build_instances: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance f2dddea8-8025-48cc-a6dd-481078921ff2.: nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance f2dddea8-8025-48cc-a6dd-481078921ff2.
nova-conductor.log:3:2022-12-09 08:38:11.777 1890 WARNING nova.scheduler.utils [req-a58a5759-9a1c-4b33-996a-6a393d0fef87 02754b94ca6c40f8b189a7d19b897e53 b5e1426408a048739a9f73841c9a2f09 - default default] [instance: f2dddea8-8025-48cc-a6dd-481078921ff2] Setting instance to ERROR state.: nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance f2dddea8-8025-48cc-a6dd-481078921ff2.
nova-conductor.log:5:2022-12-09 08:39:55.914 1890 WARNING nova.scheduler.utils [req-4aa4bd82-e488-40e8-8096-b4d9c79bf58f 02754b94ca6c40f8b189a7d19b897e53 b5e1426408a048739a9f73841c9a2f09 - default default] Failed to compute_task_build_instances: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 3ac51153-78ca-4127-9824-fcdce6768859.: nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 3ac51153-78ca-4127-9824-fcdce6768859.
nova-conductor.log:6:2022-12-09 08:39:55.914 1890 WARNING nova.scheduler.utils [req-4aa4bd82-e488-40e8-8096-b4d9c79bf58f 02754b94ca6c40f8b189a7d19b897e53 b5e1426408a048739a9f73841c9a2f09 - default default] [instance: 3ac51153-78ca-4127-9824-fcdce6768859] Setting instance to ERROR state.: nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 3ac51153-78ca-4127-9824-fcdce6768859.
nova-conductor.log:9:2022-12-09 08:47:14.827 1889 WARNING nova.scheduler.utils [req-12916e51-6ade-4b4e-9352-b66490ae0a31 02754b94ca6c40f8b189a7d19b897e53 b5e1426408a048739a9f73841c9a2f09 - default default] Failed to compute_task_build_instances: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 036d5473-8289-4d64-8a0a-c9f7b4888d52.: nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 036d5473-8289-4d64-8a0a-c9f7b4888d52.
nova-conductor.log:10:2022-12-09 08:47:14.827 1889 WARNING nova.scheduler.utils [req-12916e51-6ade-4b4e-9352-b66490ae0a31 02754b94ca6c40f8b189a7d19b897e53 b5e1426408a048739a9f73841c9a2f09 - default default] [instance: 036d5473-8289-4d64-8a0a-c9f7b4888d52] Setting instance to ERROR state.: nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 036d5473-8289-4d64-8a0a-c9f7b4888d52.
nova-conductor.log.1:263775:2022-12-08 17:06:49.585 1889 WARNING nova.scheduler.utils [req-ffa91e7d-297d-429a-b9ce-55898a4fc944 02754b94ca6c40f8b189a7d19b897e53 b5e1426408a048739a9f73841c9a2f09 - default default] Failed to compute_task_build_instances: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 5c93621f-039d-4a38-b210-2976d472d370.: nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 5c93621f-039d-4a38-b210-2976d472d370.
nova-conductor.log.1:263776:2022-12-08 17:06:49.586 1889 WARNING nova.scheduler.utils [req-ffa91e7d-297d-429a-b9ce-55898a4fc944 02754b94ca6c40f8b189a7d19b897e53 b5e1426408a048739a9f73841c9a2f09 - default default] [instance: 5c93621f-039d-4a38-b210-2976d472d370] Setting instance to ERROR state.: nova.exception.MaxRetriesExceeded: Exceeded maximum number of retries. Exhausted all hosts available for retrying build failures for instance 5c93621f-039d-4a38-b210-2976d472d370.

在 nova-conductor.log ,conductor 的意思是 合唱队的指挥

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐