Build of instance aborted: Volume did not finish being created even after we waited 187 seconds or 61 attempts. And its status is downloading.

what 发表于: 2023-02-23   最后更新时间: 2023-02-23 19:45:41   2,281 游览

在OpenStack里尝试从Image里启动一个实例时,如果配置的卷很大,超过50G,则有可能会创建实例失败。

错误:

aborted: Volume xxxx did not finish being created even after we waited 187 seconds or 61 attempts. And its status is creating.

错误详情:

[instance: 5d250238-53b2-417e-b781-d76044dcf7ef] Build of instance 5d250238-53b2-417e-b781-d76044dcf7ef aborted: Volume 0b230c45-8586-425c-8ecb-44c8fa55f18d did not finish being created even after we waited 187 seconds or 61 attempts. And its status is creating.: nova.exception.BuildAbortException: Build of instance 5d250238-53b2-417e-b781-d76044dcf7ef aborted: Volume 0b230c45-8586-425c-8ecb-44c8fa55f18d did not finish being created even after we waited 187 seconds or 61 attempts. And its status is creating.

请问该如何解决

发表于 2023-02-23
添加评论

OpenStack在不停尝试61次后,宣告创建实例失败。是因为卷创建依然还未完成。
所以,实例创建失败的原因可能是卷创建需要的时间比较久,在卷创建成功完成之前,Nova组件等待超时了。

默认重试次数是60次,每次的间隔是3秒,所以是180+秒后报错。

解决方法:计算节点的nova.conf中

[DEFAULT]
...
block_device_allocate_retries=600 // 参数加大
block_device_allocate_retries_interval=6 // 加上这个参数

之后重启nova-compute解决。

参数详情来自:https://docs.openstack.org/ocata/config-reference/compute/config-options.html

你的答案

查看OpenStack相关的其他问题或提一个您自己的问题