From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id B310F1FF142 for ; Mon, 02 Mar 2026 14:45:09 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 373673426D; Mon, 2 Mar 2026 14:46:12 +0100 (CET) From: Lukas Sichert To: pdm-devel@lists.proxmox.com Subject: [PATCH api-types/manager/datacenter-manager 0/4] fix #7315: datacenter-manager: fix wrong calculation of total storage Date: Mon, 2 Mar 2026 14:45:33 +0100 Message-ID: <20260302134537.108696-1-l.sichert@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 2 AWL -2.522 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 KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.012 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 1.188 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.93 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record URIBL_BLACK 3 Contains an URL listed in the URIBL blacklist [types.rs] Message-ID-Hash: DSHA5PT63ZEOLZU76A5B6UR34DF4OFWV X-Message-ID-Hash: DSHA5PT63ZEOLZU76A5B6UR34DF4OFWV X-MailFrom: lsichert@pve.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 CC: Lukas Sichert 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: Currently, the calculation for total storage in a cluster with shared storage is incorrect. For every node to which the shared storage is configured, the storage capacity is added to the total capacity. In order to perform the correct calculations, the pve backend must provide a "shared" flag to the datacenter-manager backend. The PVE backend already responds with the flag. However, since the flag is not described in the JSON schema, the Rust backend cannot extract the value. Currently, regenerating the Rust files, where the schema is described for the Rust backend, is not possible because a new Windows certificate has been added. Threfore in this series: -the generate script is updated, -the generated files after running 'make refresh' are updated, -the shared flag is added to the json schema, -the storage calculations are corrected using the shared flag. proxmox: Lukas Sichert (2): fix #7315: generate: add support for new certificate variant fix #7315: run make refresh pve-api-types/generate.pl | 1 + pve-api-types/pve-api.json | 85 ++++++++++++++++++++----- pve-api-types/src/generated/types.rs | 92 +++++++++++++++++++++++++--- 3 files changed, 154 insertions(+), 24 deletions(-) pve-manager: Lukas Sichert (1): fix #7315: add missing storage flag to json Schema PVE/API2/Cluster.pm | 5 +++++ 1 file changed, 5 insertions(+) proxmox-datacenter-manager: Lukas Sichert (1): fix #7135: ui: correct calculations for shared storages cli/client/src/resources.rs | 1 + lib/pdm-api-types/src/resource.rs | 2 ++ server/src/api/resources.rs | 1 + server/src/views/tests.rs | 1 + ui/src/pve/remote_overview.rs | 9 +++++++-- 5 files changed, 12 insertions(+), 2 deletions(-) -- 2.47.3