all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH-SERIES qemu-server v2 0/3] qmp: improve error handling for mon_cmd()
@ 2025-08-12 11:56 Fiona Ebner
  2025-08-12 11:56 ` [pve-devel] [PATCH qemu-server v2 1/3] qmp client: add $noerr argument Fiona Ebner
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Fiona Ebner @ 2025-08-12 11:56 UTC (permalink / raw)
  To: pve-devel

Changes in v2:
* use eval+warn around new detach() call sites, as failure should not
  be critical there.

Add a new noerr argument to mon_cmd() to allow callers to opt-in to
handling errors themselves.

Without passing 'noerr' to mon_cmd(), errors are logged to the system
journal. In the blockdev module, in attach() and detach(), there are
two mon_cmd() calls that are expected to fail in some scenarios for
which the errors should not be logged.

Again in the blockdev module, the functions for deletion and replace
had the same issue. Have them re-use the detach() function.


Fiona Ebner (3):
  qmp client: add $noerr argument
  blockdev: attach/detach: silence errors for QMP commands for which
    failure may be expected
  blockdev: delete/replace: re-use detach() helper

 src/PVE/QMPClient.pm           |  8 ++++---
 src/PVE/QemuServer/Blockdev.pm | 16 ++++++--------
 src/PVE/QemuServer/Monitor.pm  | 40 +++++++++++++++++++++++++++++++---
 3 files changed, 49 insertions(+), 15 deletions(-)

-- 
2.47.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


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

end of thread, other threads:[~2025-08-12 12:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-12 11:56 [pve-devel] [PATCH-SERIES qemu-server v2 0/3] qmp: improve error handling for mon_cmd() Fiona Ebner
2025-08-12 11:56 ` [pve-devel] [PATCH qemu-server v2 1/3] qmp client: add $noerr argument Fiona Ebner
2025-08-12 11:56 ` [pve-devel] [PATCH qemu-server v2 2/3] blockdev: attach/detach: silence errors for QMP commands for which failure may be expected Fiona Ebner
2025-08-12 11:56 ` [pve-devel] [PATCH qemu-server v2 3/3] blockdev: delete/replace: re-use detach() helper Fiona Ebner
2025-08-12 12:51 ` [pve-devel] applied-series: [PATCH-SERIES qemu-server v2 0/3] qmp: improve error handling for mon_cmd() Fabian Grünbichler

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