From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 7FC8F1FF13B for ; Mon, 08 Jun 2026 15:26:15 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DD4B41D974; Mon, 8 Jun 2026 15:26:14 +0200 (CEST) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager v2 4/4] tasks: remote node mapping: use host cache for PBS too Date: Mon, 8 Jun 2026 15:25:32 +0200 Message-ID: <20260608132539.2949407-5-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260608132539.2949407-1-d.csapak@proxmox.com> References: <20260608132539.2949407-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.049 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment 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: 6GB2F4WC7T7DF65EPUQODLWU673SFX6S X-Message-ID-Hash: 6GB2F4WC7T7DF65EPUQODLWU673SFX6S X-MailFrom: d.csapak@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 Datacenter Manager development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: since we want to leverage the back-off mechanism from the remote node cache, we have to insert host information there for PBS too. Omit the nodename querying for now, as there is no need to do that on PBS remotes (there is only ever one node in a PBS remote). Signed-off-by: Dominik Csapak --- .../bin/proxmox-datacenter-api/tasks/remote_node_mapping.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server/src/bin/proxmox-datacenter-api/tasks/remote_node_mapping.rs b/server/src/bin/proxmox-datacenter-api/tasks/remote_node_mapping.rs index 867e01cf..6f4919a4 100644 --- a/server/src/bin/proxmox-datacenter-api/tasks/remote_node_mapping.rs +++ b/server/src/bin/proxmox-datacenter-api/tasks/remote_node_mapping.rs @@ -140,11 +140,6 @@ impl CachingTask { *entry = remote_cache::RemoteMapping::new(remote.ty); } - // Only PVE entries currently have a node cache, so skip non-PVE remotes: - if remote.ty != RemoteType::Pve { - return; - } - // prune nodes which were removed: entry.hosts.retain(|hostname, info| { let retain = remote.nodes.iter().any(|node| node.hostname == *hostname); -- 2.47.3