]> git.proxmox.com Git - qemu-server.git/commit - PVE/API2/Qemu.pm
fix #1734: clone VM: if deactivation fails demote error to warning
authorHannes Duerr <h.duerr@proxmox.com>
Wed, 6 Mar 2024 14:08:34 +0000 (15:08 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 8 Mar 2024 12:40:42 +0000 (13:40 +0100)
commit9d6126e8db7234c3e357d165ae0fd7c0d9648229
tree87a441a58b39ca20c6569d31fe8eba449caf46aa
parent40786ff96713b7d15d4039b3b75a9f7a2f6d4163
fix #1734: clone VM: if deactivation fails demote error to warning

When a template with disks on LVM is cloned to another node, the
volumes are first activated, then cloned and deactivated again after
cloning.

However, if clones of this template are now created in parallel to
other nodes, it can happen that one of the tasks can no longer
deactivate the logical volume because it is still in use.  The reason
for this is that we use a shared lock.
Since the failed deactivation does not necessarily have consequences,
we downgrade the error to a warning, which means that the clone tasks
will continue to be completed successfully.

Signed-off-by: Hannes Duerr <h.duerr@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
PVE/API2/Qemu.pm