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 283D71FF179 for ; Wed, 15 Oct 2025 14:47:33 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id CC8ED1B176; Wed, 15 Oct 2025 14:47:52 +0200 (CEST) From: Lukas Wagner To: pdm-devel@lists.proxmox.com Date: Wed, 15 Oct 2025 14:46:59 +0200 Message-ID: <20251015124711.312943-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1760532436534 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.026 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pdm-devel] [PATCH proxmox-datacenter-manager 00/12] add global remote update view X-BeenThere: pdm-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Datacenter Manager development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox Datacenter Manager development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pdm-devel-bounces@lists.proxmox.com Sender: "pdm-devel" This series adds a new tab under "Remotes" called "Updates". It provides a summary regarding the system update availability for all managed remotes. Potential follow-up work: - The "Refresh all" button, powered by the '/remote-updates/refresh' API only retrieves a fresh list of available updates at the moment, but does not invoke 'apt update' on the remote. The latter could be useful, either always or if explicitly requested, but we probably should 'stream' the node's task log to the PDM task log, so one can see the actual progress and/or any problems. - Remote task cache / task tracking needs a bit of work to correctly handle PBS tasks, therefore the 'Update' (which *does* invoke 'apt update' on the remote node) button for a *SINGLE* node does not work yet for PBS. proxmox-datacenter-manager: Lukas Wagner (12): metric collection task: tests: add missing parameter for cluster_metric_export pdm-api-types: add types for remote upgrade summary remote updates: add cache for remote update availability api: add API for retrieving/refreshing the remote update summary unprivileged api daemon: tasks: add remote update refresh task pdm-client: add API methods for remote update summaries pbs-client: add bindings for APT-related API calls task cache: use separate functions for tracking PVE and PBS tasks remote updates: add support for PBS remotes api: add APT endpoints for PBS remotes ui: add remote update view ui: show new remote update view in the 'Remotes' section lib/pdm-api-types/src/lib.rs | 2 + lib/pdm-api-types/src/remote_updates.rs | 126 +++++ lib/pdm-client/src/lib.rs | 22 + server/src/api/mod.rs | 3 + server/src/api/pbs/mod.rs | 19 +- server/src/api/pbs/node.rs | 9 + server/src/api/pve/apt.rs | 119 ---- server/src/api/pve/mod.rs | 4 +- server/src/api/pve/node.rs | 2 +- server/src/api/remote_updates.rs | 222 ++++++++ server/src/bin/proxmox-datacenter-api/main.rs | 1 + .../bin/proxmox-datacenter-api/tasks/mod.rs | 1 + .../tasks/remote_updates.rs | 44 ++ .../src/metric_collection/collection_task.rs | 1 + server/src/pbs_client.rs | 51 ++ server/src/remote_tasks/mod.rs | 45 +- server/src/remote_updates.rs | 229 +++++++- ui/src/remotes/mod.rs | 10 + ui/src/remotes/updates.rs | 531 ++++++++++++++++++ 19 files changed, 1299 insertions(+), 142 deletions(-) create mode 100644 lib/pdm-api-types/src/remote_updates.rs create mode 100644 server/src/api/pbs/node.rs delete mode 100644 server/src/api/pve/apt.rs create mode 100644 server/src/api/remote_updates.rs create mode 100644 server/src/bin/proxmox-datacenter-api/tasks/remote_updates.rs create mode 100644 ui/src/remotes/updates.rs Summary over all repositories: 19 files changed, 1299 insertions(+), 142 deletions(-) -- Generated by murpp 0.9.0 _______________________________________________ pdm-devel mailing list pdm-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pdm-devel