all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "Elias Huhsovitz" <e.huhsovitz@proxmox.com>
To: "Fiona Ebner" <f.ebner@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH qemu-server 4/4] clone disk: bump timeout for querying target volume size to 1 minute
Date: Fri, 23 Oct 2026 11:31:17 +0200	[thread overview]
Message-ID: <DMC4318T73C2.2BPYBFDOM7TSX@proxmox.com> (raw)
In-Reply-To: <20261022093901.52732-5-f.ebner@proxmox.com>

On Thu Oct 22, 2026 at 11:38 AM CEST, Fiona Ebner wrote:
> Since commit "fix #8209: clone disk: do not ignore failure to query
> size of target", failure to query the size of the target volume after
> clone is no longer quietly ignored. Bump the timeout to reduce the
> likelyhood of harmless timeouts causing a warning. Print a message to
> communicate that the query is happening to the user.
>
> Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
> ---
>  src/PVE/QemuServer.pm | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm
> index 4b7351b3..0f8aef6f 100644
> --- a/src/PVE/QemuServer.pm
> +++ b/src/PVE/QemuServer.pm
> @@ -7931,7 +7931,8 @@ sub clone_disk {
>      }
>  
>      my $result = {};
> -    my $size = eval { PVE::Storage::volume_size_info($storecfg, $newvolid, 10) };
> +    print "querying size of target volume '$newvolid' after copy..\n";

nit: IMO the message should say: 'after clone...', since we are calling 
PVE::Storage::vdisk_clone.

super nit: i think it should be three dots (...), instead of 2 (..) ;)

> +    my $size = eval { PVE::Storage::volume_size_info($storecfg, $newvolid, 60) };

nit: The timeout is inconsistent with the volume_size_info() call on
line 7897. There it is still 10 seconds. I am not sure if we can
gurantee that querying the source volume is always faster than querying
the target volume.

general: Tbh I am not sure that a generic timeout is the optimal
long-term solution here. I feel like the timeout should be storage
specific. E.g., an incrased timeout of 60 seconds for a NFS, but keep
the 10 seconds for a local ZFS.

But for now, the incrased timeout is fine.

>      my $err = $@;
>      $err = "no size in result" if !$err && !$size;
>      if ($err) {





      reply	other threads:[~2026-10-23  9:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-22  9:38 [PATCH-SERIES qemu-server 0/4] fix #8209: clone disk: do not ignore failure to query size of target Fiona Ebner
2026-10-22  9:38 ` [PATCH qemu-server 1/4] block job: monitor: document that job-complete is not used if source differs from target Fiona Ebner
2026-10-23  8:44   ` Elias Huhsovitz
2026-10-22  9:38 ` [PATCH qemu-server 2/4] fix #8209: clone disk: do not ignore failure to query size of target Fiona Ebner
2026-10-22 13:25   ` Elias Huhsovitz
2026-10-22  9:38 ` [PATCH qemu-server 3/4] clone disk: abort early when failing to query size of source disk Fiona Ebner
2026-10-23  8:53   ` Elias Huhsovitz
2026-10-22  9:38 ` [PATCH qemu-server 4/4] clone disk: bump timeout for querying target volume size to 1 minute Fiona Ebner
2026-10-23  9:31   ` Elias Huhsovitz [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=DMC4318T73C2.2BPYBFDOM7TSX@proxmox.com \
    --to=e.huhsovitz@proxmox.com \
    --cc=f.ebner@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal