cinder/releasenotes/notes/cleanup-rbd-temp-file-during-convert-fail-3848e9dbe7e15fc6.yaml
Rajat Dhasmana 48774c89ab RBD: Cleanup temporary file during exception
During copy image to encrypted volume operation, we create a
temporary image file to convert source image into an encrypted
image and rename it to source image name.
If any error occurs during this process, there is no code to
cleanup the temporary '.luks' file.
This patch adds the following cleanup.

Change-Id: I05dfc996a635299990fdafba841ab6c4fd7d32c7
Closes-Bug: 1873738
(cherry picked from commit 7c95f3969f)
(cherry picked from commit 02de7897d4)
2020-08-05 19:43:50 +00:00

6 lines
204 B
YAML

---
fixes:
- |
`Bug #1873738 <https://bugs.launchpad.net/cinder/+bug/1873738>`_: RBD Driver:
Added cleanup for residue destination file if the copy image to encrypted volume
operation fails.