"Cannot access backing file, No such file or directory" error when resize instance with ephemeral disks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Description
===========
When we resize an instance with flavor with ephemeral disk, it finishes in error state and we have the following error : Cannot access backing file \'/var/
The issue happened only when the instance has been initially created with flavor without ephemeral disk.
Steps to reproduce
==================
* Have three compute nodes
* create three "dedicated" flavors called small, medium and large. The small flavor has no ephemeral disk.
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| access_project_ids | None |
| description | None |
| disk | 50 |
| id | xxxxxxxxxxxxxxx
| name | medium |
| os-flavor-
| properties | |
| ram | 1024 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+------
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| access_project_ids | None |
| description | None |
| disk | 50 |
| id | xxxxxxxxxxxxxxx
| name | medium |
| os-flavor-
| properties | |
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+------
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| access_project_ids | None |
| description | None |
| disk | 50 |
| id | xxxxxxxxxxxxxxx
| name | medium |
| os-flavor-
| properties | |
| ram | 4096 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 2 |
+------
* Create the instance with flavor small
* Resize the instance with the flavor medium to the second node
* Check the folder nova_compute/
ls nova_compute/
nova_compute/
* Ensure this file is not present on the another nodes.
* Resize the instance with the flavor large to the third node
* Then you will see the ERROR in nova_compute logs : libvirt.
Expected result
===============
VM resized successfuly, vm state is active
Actual result
=============
* VM become ERROR
* On dashboard you can see this notice:
Please try again later [Error: libvirtError].
Environment
===========
1. Exact version of OpenStack you are running.
Train version 20.6.1
The error happened also in Wallaby
2. Which hypervisor did you use?
Libvirt + KVM
3. Which storage type did you use?
local disk
4. Which networking type did you use?
Neutron with OpenVSwitch
Logs & Configs
==============
2023-07-12 07:51:14.786 7 ERROR nova.compute.
-4ae8-81cd-
01de72ff-