From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 30AD01FF0AF for ; Fri, 20 Nov 2026 12:20:16 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id B1A0C21728; Fri, 20 Nov 2026 12:19:59 +0100 (CET) From: Fiona Ebner To: pve-devel@lists.proxmox.com Subject: [PATCH-SERIES qemu-server/container 0/3] fix #8354: config: gracefully handle empty 'running-nets-host-mtu' Date: Fri, 20 Nov 2026 12:19:15 +0100 Message-ID: <20261120111949.71436-1-f.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 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: 1795173593271 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.249 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: HV5N5OVMFWC27NA2SOVIGOVSLTI457JQ X-Message-ID-Hash: HV5N5OVMFWC27NA2SOVIGOVSLTI457JQ X-MailFrom: f.ebner@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: For a VM without any VirtIO NICs (or if failing to query via QMP), the result from get_nets_host_mtu() is an empty string. The schema verification when writing out the configuration is currently incomplete and for example, does not check the 'pattern' of a property. The result verification for a 'qm config' command uses tighter checks, so it would run into an error for an empty value: > 400 Result verification failed > running-nets-host-mtu: value does not match the regex pattern Avoid writing out an empty 'running-nets-host-mtu' value to the configuration and ignore it upon parsing to unbreak already written out values. Also add a reminder to tighten the checks for a future major release to avoid such issues in the future. qemu-server: Fiona Ebner (2): fix #8354: config: gracefully handle empty 'running-nets-host-mtu' config: check type: add reminder to improve checks for major release src/PVE/QemuConfig.pm | 2 +- src/PVE/QemuServer.pm | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) container: Fiona Ebner (1): config: check type: add reminder to improve checks for major release src/PVE/LXC/Config.pm | 1 + 1 file changed, 1 insertion(+) Summary over all repositories: 3 files changed, 7 insertions(+), 1 deletions(-) -- Generated by git-murpp 0.5.0