From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 242FD1FF066 for ; Tue, 24 Nov 2026 09:00:27 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id CA5B22140A; Tue, 24 Nov 2026 09:00:25 +0100 (CET) From: Thomas Lamprecht To: pve-devel@lists.proxmox.com, Jonas Theisen Subject: applied: [PATCH storage 0/2] rbd: avoid hanging VM start on EFI disk cache policy Date: Tue, 24 Nov 2026 08:59:53 +0100 Message-ID: <179550708166.3226985.2308392635577088410.b4-ty@b4> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261120141020.243160-1-j.theisen@proxmox.com> References: <20261120141020.243160-1-j.theisen@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795507220840 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.149 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: KGKFL2CMSV6IXFY4H2FRPGOJWN5SPTMA X-Message-ID-Hash: KGKFL2CMSV6IXFY4H2FRPGOJWN5SPTMA X-MailFrom: t.lamprecht@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Fri, 20 Nov 2026 15:10:05 +0100, Jonas Theisen wrote: > Starting a VM with an EFI disk on RBD sets the rbd_cache_policy image > config on every start. On the target of a live migration, the source > VM still holds the exclusive lock, so librbd forwards the write to it > and re-sends the request every 30 seconds until the lock owner reports > completion. 'rbd config image set' then hangs without end if: > > - the lock owner never reports completion, or > - the completion arrives just after a re-send timed out, but before > the request is sent again. The requester drops it, and the lock > owner answers every further re-send of the finished request with its > result, 0 on success. That is the same answer as for a request still > in progress, so the requester waits for a completion that is never > sent again. See prepare_async_request() in librbd's ImageWatcher.cc. > > [...] Applied, thanks! I folded a few changes into both patches, see the [TL: ...] notes: - Stopping the start task while 'rbd config image get' or 'set' ran was caught like any other error, so the VM start went on. An interrupt now aborts the start again, as it did before the series. - A failed 'set' now warns through log_warn, so the task ends with a warning instead of OK. - The 30 second retry is only the default of the request timeout, which the comment and both messages now say. Patch 1 got a Fixes trailer. [1/2] rbd: only set image config if the value differs https://git.proxmox.com/?p=pve-storage.git;a=commitdiff;h=a741eff3af24f5aadac218c65abb7c64697a4f04 [2/2] rbd: do not let setting the EFI disk cache policy block VM start https://git.proxmox.com/?p=pve-storage.git;a=commitdiff;h=ce24432bc405a86b67e7b9c52bb0d2851f30ba00