all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH-SERIES qemu-server/container 0/3] fix #8354: config: gracefully handle empty 'running-nets-host-mtu'
@ 2026-11-20 11:19 Fiona Ebner
  2026-11-20 11:19 ` [PATCH qemu-server 1/3] " Fiona Ebner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fiona Ebner @ 2026-11-20 11:19 UTC (permalink / raw)
  To: pve-devel

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




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

end of thread, other threads:[~2026-11-20 12:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-20 11:19 [PATCH-SERIES qemu-server/container 0/3] fix #8354: config: gracefully handle empty 'running-nets-host-mtu' Fiona Ebner
2026-11-20 11:19 ` [PATCH qemu-server 1/3] " Fiona Ebner
2026-11-20 11:19 ` [PATCH qemu-server 2/3] config: check type: add reminder to improve checks for major release Fiona Ebner
2026-11-20 11:19 ` [PATCH container 3/3] " Fiona Ebner
2026-11-20 12:00 ` applied: [PATCH-SERIES qemu-server/container 0/3] fix #8354: config: gracefully handle empty 'running-nets-host-mtu' Thomas Lamprecht

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