public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH-SERIES qemu-server 0/3] fix #7743: api: disk import: avoid locking twice when importing from OVA or same VM
@ 2026-06-29 12:45 Fiona Ebner
  2026-06-29 12:45 ` [PATCH qemu-server 1/3] api: disk import: remove unused wrongly named variable Fiona Ebner
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Fiona Ebner @ 2026-06-29 12:45 UTC (permalink / raw)
  To: pve-devel

When import_from_volid->() is called, the VM configuration of the
destination VM is already locked. In case the source volume belongs to
the same VM, there would be a second attempt to lock the config. In
particular, this also happens when importing from OVA, because the
source image is first extracted and belongs to the same VM.

Additionally, the update VM API call is changed to fork before
locking using the usual early+repeated checks pattern.

qemu-server:

Fiona Ebner (3):
  api: disk import: remove unused wrongly named variable
  fix #7743: api: disk import: avoid locking twice when importing from
    OVA or same VM
  api: update vm: fork before locking

 src/PVE/API2/Qemu.pm | 780 ++++++++++++++++++++++---------------------
 1 file changed, 397 insertions(+), 383 deletions(-)


Summary over all repositories:
  1 files changed, 397 insertions(+), 383 deletions(-)

-- 
Generated by git-murpp 0.5.0




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-07-03  9:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-29 12:45 [PATCH-SERIES qemu-server 0/3] fix #7743: api: disk import: avoid locking twice when importing from OVA or same VM Fiona Ebner
2026-06-29 12:45 ` [PATCH qemu-server 1/3] api: disk import: remove unused wrongly named variable Fiona Ebner
2026-07-03  9:32   ` Dominik Csapak
2026-06-29 12:45 ` [PATCH qemu-server 2/3] fix #7743: api: disk import: avoid locking twice when importing from OVA or same VM Fiona Ebner
2026-07-03  9:31   ` Dominik Csapak
2026-06-29 12:45 ` [PATCH qemu-server 3/3] api: update vm: fork before locking Fiona Ebner
2026-07-03  9:41   ` Dominik Csapak
2026-06-30  9:49 ` [PATCH-SERIES qemu-server 0/3] fix #7743: api: disk import: avoid locking twice when importing from OVA or same VM Manuel Federanko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal