public inbox for pdm-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
To: pdm-devel@lists.proxmox.com
Subject: [PATCH qemu-server v2 1/4] api: cpu flags: proxy the request to the given node
Date: Mon, 30 Nov 2026 15:10:51 +0100	[thread overview]
Message-ID: <20261130141054.556314-2-a.bied-charreton@proxmox.com> (raw)
In-Reply-To: <20261130141054.556314-1-a.bied-charreton@proxmox.com>

The endpoint did not use its node parameter and just answered with the
flags known to the node that happened to receive the request. In a
mixed-version cluster, that list can contain flags `node` does not
support or miss flags it does support.

Proxy the request to the given node, like the machine types endpoint.

Signed-off-by: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
---
 src/PVE/API2/Qemu/CPUFlags.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/API2/Qemu/CPUFlags.pm b/src/PVE/API2/Qemu/CPUFlags.pm
index b81cbfaf..a3767554 100644
--- a/src/PVE/API2/Qemu/CPUFlags.pm
+++ b/src/PVE/API2/Qemu/CPUFlags.pm
@@ -16,6 +16,7 @@ __PACKAGE__->register_method({
     name => 'index',
     path => '',
     method => 'GET',
+    proxyto => 'node',
     description =>
         "List of available VM-specific CPU flags. Returns an empty list for 'aarch64' "
         . "as no VM-specific flags are defined for it yet.",
-- 
2.47.3





  reply	other threads:[~2026-11-30 14:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 14:10 [PATCH datacenter-manager/proxmox{,-yew-comp}/qemu-server v2 0/4] load VM-specific CPU flags from the remote Arthur Bied-Charreton
2026-11-30 14:10 ` Arthur Bied-Charreton [this message]
2026-11-30 14:10 ` [PATCH proxmox v2 2/4] pve-api-types: add VM-specific CPU flags endpoint Arthur Bied-Charreton
2026-11-30 14:10 ` [PATCH datacenter-manager v2 3/4] api: pve: " Arthur Bied-Charreton
2026-11-30 14:10 ` [PATCH proxmox-yew-comp v2 4/4] qemu: cpu flags: load the CPU flags from the node Arthur Bied-Charreton

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=20261130141054.556314-2-a.bied-charreton@proxmox.com \
    --to=a.bied-charreton@proxmox.com \
    --cc=pdm-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal