public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Manuel Federanko <m.federanko@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: Re: [PATCH-SERIES qemu-server 0/3] fix #7743: api: disk import: avoid locking twice when importing from OVA or same VM
Date: Tue, 30 Jun 2026 11:49:12 +0200	[thread overview]
Message-ID: <3918ef95-3b3b-48ec-825e-c61470eb3549@proxmox.com> (raw)
In-Reply-To: <20260629124625.115457-1-f.ebner@proxmox.com>

Hi,

I built the package, installed it and check that the issue no longer
exists with my reproducer [0].

Everything seems to be working fine.

Thanks!

Tested-by: Manuel Federanko <m.federanko@proxmox.com>

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=7743

On 2026-06-29 2:46 PM, Fiona Ebner wrote:
> 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(-)
> 




      parent reply	other threads:[~2026-06-30  9:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-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-06-29 12:45 ` [PATCH qemu-server 3/3] api: update vm: fork before locking Fiona Ebner
2026-06-30  9:49 ` Manuel Federanko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3918ef95-3b3b-48ec-825e-c61470eb3549@proxmox.com \
    --to=m.federanko@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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