Stop cleaning images to be deleted in remotefs driver

Add '-d' flag to qemu-img commit operations during
snapshot deletion in remotefs driver.

Change-Id: I66396fb7e2616be734b7c8f73b87c650b1e603bf
Closes-Bug: #1805853
This commit is contained in:
Silvan Kaiser 2018-11-29 15:47:29 +01:00
parent 4529b193da
commit 13499f5895
1 changed files with 1 additions and 1 deletions

View File

@ -818,7 +818,7 @@ class RemoteFSSnapDriverBase(RemoteFSDriver):
# NFS snapshots
# It needs to run as root for volumes attached to instances, but
# does not when in secure mode.
self._execute('qemu-img', 'commit', path,
self._execute('qemu-img', 'commit', '-d', path,
run_as_root=self._execute_as_root)
self._delete(path)