1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

experimental: external snapshot fixes 2

This commit is contained in:
catborise 2023-04-14 16:11:13 +03:00
parent 06994b0423
commit f4aa925e2a
2 changed files with 5 additions and 1 deletions

View file

@ -1335,6 +1335,7 @@ class wvmInstance(wvmConnect):
info = self.instance.blockJobInfo(target_dev, 0)
if info.get('cur') == info.get('end'):
self.instance.blockJobAbort(target_dev,flags=VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT)
time.sleep(2)
break
# Check again pool for snapshot delta volume; if it exist, remove it manually
with contextlib.suppress(libvirtError):