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 1AF7D1FF16F for ; Tue, 2 Sep 2025 17:14:51 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 93A0218540; Tue, 2 Sep 2025 17:15:04 +0200 (CEST) From: Lukas Wagner To: pdm-devel@lists.proxmox.com Date: Tue, 2 Sep 2025 17:14:17 +0200 Message-ID: <20250902151427.425017-1-l.wagner@proxmox.com> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1756826056562 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.124 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 POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes 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 URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [apt.pm, schema2rust.pm, generate.pl, code.rs, mod.rs, node.rs, types.rs, overview.rs, apt.rs, lib.rs] Subject: [pdm-devel] [PATCH manager/proxmox{-api-types, -yew-comp, -datacenter-manager} 00/10] PVE node 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 'Updates' tab for PVE remotes. The existing status overview is moved to a new 'Overview' tab, which is visible by default. On the backend side, we add a couple new API endpoints, which simply pass through the request to the PVE nodes, no caching for now. GET /pve/remotes/{remote}/nodes/{node}/apt Get list of updatable packages GET /pve/remotes/{remote}/nodes/{node}/changelog Get list of changelog of package POST /pve/remotes/{remote}/nodes/{node}/apt Update APT package database In terms of permissions, these new API endpoints require RESOURCE_MODIFY privs on /resource/{remote}/node/{node}/system This was the result of a short discussion in the development chat room. The existing APT view component is a bit large for this panel, maybe we could hide the package description by default (but not too important for now). Future work (some backend work already started, but can't finish before my vacation): - "Global Update" view that lists update status of all remote nodes - Cache update status per node (absolutely necessary for the 'global' view), with a task refreshing the update status every couple of hours - Maybe send a notification about the global update availabilty (require notification stack integration first) - Add new API functions to pdm-client crate and CLI - Allow package upgrade (requires web socket proxying, as far as I can see, haven't really looked into it much) pve-manager: Lukas Wagner (1): api: apt: add JSON schema for 'list_updates' endpoint PVE/API2/APT.pm | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) proxmox-api-types: Lukas Wagner (3): Schema2Rust: fix handling of non-optional params generate: add bindings for various APT functions refresh bindings pve-api-types/generate.pl | 4 + pve-api-types/generator-lib/Schema2Rust.pm | 9 +- pve-api-types/src/generated/code.rs | 58 ++++++++++- pve-api-types/src/generated/types.rs | 108 +++++++++++++++++++++ 4 files changed, 175 insertions(+), 4 deletions(-) proxmox-yew-comp: Lukas Wagner (2): apt view: allow to set task_base_url apt view: reload if base urls have changed src/apt_package_manager.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) proxmox-datacenter-manager: Lukas Wagner (4): server: add api for getting available updates/changelogs for remote nodes ui: pve: promote node.rs to dir-style module ui: pve: move node overview to a new overview tab ui: pve: node: add update tab server/src/api/pve/apt.rs | 119 +++++++++++++++++++++++ server/src/api/pve/mod.rs | 3 +- server/src/api/pve/node.rs | 1 + server/src/lib.rs | 1 + server/src/remote_updates.rs | 96 ++++++++++++++++++ ui/src/pve/node/mod.rs | 103 ++++++++++++++++++++ ui/src/pve/{node.rs => node/overview.rs} | 31 +++--- 7 files changed, 333 insertions(+), 21 deletions(-) create mode 100644 server/src/api/pve/apt.rs create mode 100644 server/src/remote_updates.rs create mode 100644 ui/src/pve/node/mod.rs rename ui/src/pve/{node.rs => node/overview.rs} (95%) Summary over all repositories: 13 files changed, 576 insertions(+), 26 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