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 A80281FF13E for ; Fri, 20 Mar 2026 10:27:20 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C7F0111E1D; Fri, 20 Mar 2026 10:27:36 +0100 (CET) From: Dominik Csapak To: pdm-devel@lists.proxmox.com Subject: [PATCH datacenter-manager 2/5] fake remote: fix nonsensical values Date: Fri, 20 Mar 2026 10:25:39 +0100 Message-ID: <20260320092702.1069143-3-d.csapak@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260320092702.1069143-1-d.csapak@proxmox.com> References: <20260320092702.1069143-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -1.025 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.408 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.819 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.903 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 Message-ID-Hash: VRQULHGBANPQCX7XQSLI74P43J6XCD4N X-Message-ID-Hash: VRQULHGBANPQCX7XQSLI74P43J6XCD4N 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: maxdisk being smaller than disk does not make sense, seems there was just a * 1024 missing, same for memhost. Also a storage needs to have an associated node. Signed-off-by: Dominik Csapak --- server/src/test_support/fake_remote.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/server/src/test_support/fake_remote.rs b/server/src/test_support/fake_remote.rs index 93c1c495..21e3a1c9 100644 --- a/server/src/test_support/fake_remote.rs +++ b/server/src/test_support/fake_remote.rs @@ -150,10 +150,10 @@ impl pve_api_types::client::PveClient for FakePveClient { id: format!("qemu/{vmid}"), level: Some("".into()), maxcpu: Some(4.), - maxdisk: Some(100 * 1024 * 1024), + maxdisk: Some(100 * 1024 * 1024 * 1024), maxmem: Some(8 * 1024 * 1024 * 1024), mem: Some(3 * 1024 * 1024 * 1024), - memhost: Some(4 * 1024 * 1024), + memhost: Some(4 * 1024 * 1024 * 1024), name: Some(format!("vm-{vmid}")), netin: Some(1034), netout: Some(1034), @@ -190,9 +190,9 @@ impl pve_api_types::client::PveClient for FakePveClient { id: format!("lxc/{vmid}"), level: Some("".into()), maxcpu: Some(4.), - maxdisk: Some(100 * 1024 * 1024), + maxdisk: Some(100 * 1024 * 1024 * 1024), maxmem: Some(8 * 1024 * 1024 * 1024), - memhost: Some(4 * 1024 * 1024), + memhost: Some(4 * 1024 * 1024 * 1024), mem: Some(3 * 1024 * 1024 * 1024), name: Some(format!("ct-{vmid}")), netin: Some(1034), @@ -229,7 +229,7 @@ impl pve_api_types::client::PveClient for FakePveClient { id: format!("node/node-{i}"), level: Some("".into()), maxcpu: Some(16.), - maxdisk: Some(100 * 1024 * 1024), + maxdisk: Some(100 * 1024 * 1024 * 1024), maxmem: Some(8 * 1024 * 1024 * 1024), mem: Some(3 * 1024 * 1024 * 1024), memhost: None, @@ -268,14 +268,14 @@ impl pve_api_types::client::PveClient for FakePveClient { id: format!("storage/node-0/storage-{i}"), level: None, maxcpu: None, - maxdisk: Some(100 * 1024 * 1024), + maxdisk: Some(100 * 1024 * 1024 * 1024), maxmem: None, mem: None, memhost: None, name: None, netin: None, netout: None, - node: None, + node: Some(format!("node-{}", i % self.nr_of_nodes)), plugintype: Some("dir".into()), pool: None, status: Some("available".into()), -- 2.47.3