]> git.proxmox.com Git - qemu-server.git/commit
Fix #2412: Missing VMs in pools
authorDominic Jäger <d.jaeger@proxmox.com>
Tue, 15 Oct 2019 10:17:41 +0000 (12:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 17 Oct 2019 17:23:49 +0000 (19:23 +0200)
commit3e8e214d73949c766ba33bbf85a8b69c32d22759
tree87a9c422213ad002c187eb60921f2535d31d4b6d
parent5c1d42b7f825fa124ff3701b32f9ecc011bece95
Fix #2412: Missing VMs in pools

Between calling vm_destroy and removing the ID from user.cfg (remove_vm_access)
creating a new VM with this ID was possible. VMs could go missing from pools as
a consequence.

Adding a lock solves this for clones from the same node. Additionally,
unlinking must happen at the very end of the deletion process to avoid that
other nodes use the ID in the meanwhile.

Co-developed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Dominic Jäger <d.jaeger@proxmox.com>
PVE/API2/Qemu.pm