During an assisted volume snapshot delete request from Cinder nova
removes the snapshot from the backing file chain. During that nova
checks the existence of such file. However in some cases (see the bug
report) the path is relative and therefore os.path.exists fails.
This patch makes sure that nova uses the volume absolute path to make
the backing file path absolute as well.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /757084 /opendev. org/openstack/ nova/commit/ e926ec75e29dcdf 3b671811533587b ba246a8c45
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/train
commit e926ec75e29dcdf 3b671811533587b ba246a8c45
Author: Balazs Gibizer <email address hidden>
Date: Thu Jul 2 12:13:29 2020 +0200
Use absolute path during qemu img rebase
During an assisted volume snapshot delete request from Cinder nova
removes the snapshot from the backing file chain. During that nova
checks the existence of such file. However in some cases (see the bug
report) the path is relative and therefore os.path.exists fails.
This patch makes sure that nova uses the volume absolute path to make
the backing file path absolute as well.
Closes-Bug #1885528
Change-Id: I58dca95251b607 eaff602783fee2f c38e2421944 9d60bc74fdbb12a 098565e7c2) 517030f881e7da7 24417fea93) 0aa2d49687ba9c6 ef6f7d37e8)
(cherry picked from commit b9333125790682f
(cherry picked from commit 831abc9f83a2d3f
(cherry picked from commit c2044d4bd091986