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/739246 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=b9333125790 682f9d60bc74fdb b12a098565e7c2
Committed: https:/
Submitter: Zuul
Branch: master
commit b9333125790682f 9d60bc74fdbb12a 098565e7c2
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