Files
nova/nova
melanie witt d0003d6bf6 libvirt: Get info with abs path, rebase with rel path
When a boot-from-volume instance with Cinder backed by NFS, when
attempting to delete a volume snapshot after deleting a newer volume
snapshot while the instance is stopped, the delete fails when Cinder
raises RemoteFSInvalidBackingFile.

The root cause is Nova using an absolute file path when specifying the
backing file when rebasing the qcow2 image during the deletion of the
newer volume snapshot. Then when the older volume snapshot is requested
to be deleted, on the Cinder side it fails because Cinder detects the
absolute path from Nova.

Originally, Nova used a relative file back for the backing file path
but it was changed to address a past bug #1885528 where an absolute
file path was needed in order to call qemu_img_info().

This changes to using an absolute path only for the qemu_img_info()
call and retain the relative path for the actual 'qemu-img rebase'
command invocation. The 'qemu-img rebase' command is designed to work
with both relative paths and absolute paths [1].

Closes-Bug: #2119353

[1] https://qemu-project.gitlab.io/qemu/tools/qemu-img.html#cmdoption-qemu-img-commands-arg-rebase

Change-Id: I6b5fe3bba49461fb10bc81e19bd16acf39e84ec6
Signed-off-by: melanie witt <melwittt@gmail.com>
(cherry picked from commit 668d9d37f8)
2025-08-27 17:10:10 +00:00
..
2024-10-11 04:51:15 +00:00
2025-02-04 11:33:48 -08:00
2024-10-02 02:32:49 +09:00
2023-12-06 11:06:18 +00:00
2024-10-02 02:32:49 +09:00
2023-05-31 07:06:34 -07:00
2024-10-18 17:41:21 +01:00
2024-03-19 19:42:00 +00:00