From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 6BC0C1FF0B3 for ; Thu, 26 Nov 2026 18:59:40 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 1C259216F7; Thu, 26 Nov 2026 18:59:38 +0100 (CET) From: =?UTF-8?q?Michael=20K=C3=B6ppl?= To: pve-devel@lists.proxmox.com Subject: [PATCH test-tools 0/3] register clusters with PDM after forming them Date: Thu, 26 Nov 2026 18:59:12 +0100 Message-ID: <20261126175915.2833652-1-m.koeppl@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795715973040 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.172 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust 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: XTCBJZPD5ZAY7T7AZHIC77DJBWTW5TVA X-Message-ID-Hash: XTCBJZPD5ZAY7T7AZHIC77DJBWTW5TVA X-MailFrom: m.koeppl@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: j.klocker@proxmox.com X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: PDM remotes were registered before clusters were formed, so each node became a standalone remote pinned to its original certificate. After joining, PDM could only connect to the node that created the cluster. This series forms clusters first and registers each cluster as a single remote, starting all of its nodes together so they are quorate. 1/3 and 2/3 are refactors with no functional changes intended. With PDM, max_concurrent_setups must now cover PDM plus the largest cluster. This is checked before the setup creates anything. Tested with setup-lifecycle.py and a local 3-node cluster setup. test-tools: Michael Köppl (3): instance: pve client: add helper for the API certificate fingerprint instance: move the grouping of instances by cluster into a helper instance: setup: register clusters with PDM after forming them README.md | 8 +- proxmox-test-instance/src/api/pdm_client.rs | 26 +- proxmox-test-instance/src/api/pve_client.rs | 10 + .../src/instance_manager/budget.rs | 7 + .../src/instance_manager/mod.rs | 241 +++++++++++------- .../tests/setup-lifecycle.py | 77 ++++-- 6 files changed, 255 insertions(+), 114 deletions(-) Summary over all repositories: 6 files changed, 255 insertions(+), 114 deletions(-) -- Generated by murpp 0.12.1