1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00

fix(instances): a snapshot file another VM uses is not called left behind

After a snapshot revert or delete, files libvirt could not remove are
named in a warning that says nothing uses them and asks to remove them
by hand. A file another VM on the same host uses (as a disk, a backing
file or a snapshot file) is no longer named: removing it would break
that VM. The warning now says no VM on this host uses the files.
This commit is contained in:
catborise 2026-10-13 07:56:19 +03:00
parent c970f8e853
commit 097a91592c
3 changed files with 32 additions and 5 deletions

View file

@ -1383,7 +1383,7 @@ def _warn_left_behind(request, files):
messages.warning(
request,
_(
"These snapshot files were not removed, although nothing uses them any more: %(files)s. "
"These snapshot files were not removed, although no VM on this host uses them any more: %(files)s. "
"On NFS libvirt removes them as the qemu user, who needs write access to their directory. "
"Remove them by hand."
)