From: Elias Huhsovitz <e.huhsovitz@proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Elias Huhsovitz <e.huhsovitz@proxmox.com>
Subject: [PATCH common/manager 0/3] fix #7803: 'localhost' alias handling in node-specific endpoints
Date: Tue, 14 Jul 2026 16:50:24 +0200 [thread overview]
Message-ID: <20260714145027.53038-1-e.huhsovitz@proxmox.com> (raw)
This series fixes bug #7803, where API endpoints like
/nodes/localhost/config and /nodes/localhost/certificates/info return
empty data or fail, while the same endpoints work correctly when using
the actual node name (e.g., /nodes/node1/config).
The API routing layer correctly proxies
'localhost' to the local node, but the endpoint handlers use the literal
string 'localhost' to construct file paths in the cluster filesystem.
Since no node directory named 'localhost' exists, the file
lookups fail.
To resolve this, the first patch introduces a
PVE::INotify::resolve_nodename() helper in pve-common to centralize the
alias resolution. The subsequent patches apply this helper to the
affected endpoints in pve-manager (NodeConfig, Certificates, RRD,
migrateall) and refactor existing inline resolutions in the bulk
operation endpoints (startall, stopall, suspendall) for consistency.
Note: The pve-common patch (1/3) must be applied and built before the
pve-manager patches, as the API changes depend on the new helper
function.
pve-common:
Elias Huhsovitz (1):
inotify: add helper to resolve 'localhost' node alias
src/PVE/INotify.pm | 5 +++++
1 file changed, 5 insertions(+)
pve-manager:
Elias Huhsovitz (2):
fix #7803: api: nodes: resolve 'localhost' alias in node-specific
endpoints
api: nodes: use resolve_nodename helper for bulk operation
PVE/API2/Ceph/MDS.pm | 3 +--
PVE/API2/Certificates.pm | 8 +++++---
PVE/API2/NodeConfig.pm | 6 ++++--
PVE/API2/Nodes.pm | 22 +++++++++-------------
4 files changed, 19 insertions(+), 20 deletions(-)
Summary over all repositories:
5 files changed, 24 insertions(+), 20 deletions(-)
--
Generated by murpp 0.12.0
next reply other threads:[~2026-07-14 14:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-14 14:50 Elias Huhsovitz [this message]
2026-07-14 14:50 ` [PATCH common 1/3] inotify: add helper to resolve 'localhost' node alias Elias Huhsovitz
2026-07-14 14:50 ` [PATCH manager 2/3] fix #7803: api: nodes: resolve 'localhost' alias in node-specific endpoints Elias Huhsovitz
2026-07-14 14:57 ` Shannon Sterz
2026-07-14 14:50 ` [PATCH manager 3/3] api: nodes: use resolve_nodename helper for bulk operation Elias Huhsovitz
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=20260714145027.53038-1-e.huhsovitz@proxmox.com \
--to=e.huhsovitz@proxmox.com \
--cc=pve-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 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.