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 142331FF183 for ; Wed, 30 Jul 2025 20:01:24 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3E9CD17366; Wed, 30 Jul 2025 20:00:42 +0200 (CEST) From: Daniel Kral To: pve-devel@lists.proxmox.com Date: Wed, 30 Jul 2025 19:59:42 +0200 Message-ID: <20250730175957.386674-16-d.kral@proxmox.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250730175957.386674-1-d.kral@proxmox.com> References: <20250730175957.386674-1-d.kral@proxmox.com> MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1753898389367 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.014 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 SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH ha-manager v5 15/23] sim: do not create default groups config X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" As none of the existing HA test cases rely on the default HA groups and the pve-ha-simulator does not have any GUI integration of HA groups anyway, remove them from being created. This is done, because in an upcoming patch, which persistently migrates HA groups to node affinity rules, it would unnecessarily fire the migration for every default group config. Signed-off-by: Daniel Kral --- src/PVE/HA/Sim/Hardware.pm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/PVE/HA/Sim/Hardware.pm b/src/PVE/HA/Sim/Hardware.pm index 579be2ad..35107446 100644 --- a/src/PVE/HA/Sim/Hardware.pm +++ b/src/PVE/HA/Sim/Hardware.pm @@ -375,20 +375,6 @@ sub read_static_service_stats { return $stats; } -my $default_group_config = <<__EOD; -group: prefer_node1 - nodes node1 - nofailback 1 - -group: prefer_node2 - nodes node2 - nofailback 1 - -group: prefer_node3 - nodes node3 - nofailback 1 -__EOD - sub new { my ($this, $testdir) = @_; @@ -415,8 +401,6 @@ sub new { if (-f "$testdir/groups") { copy("$testdir/groups", "$statusdir/groups"); - } else { - PVE::Tools::file_set_contents("$statusdir/groups", $default_group_config); } if (-f "$testdir/service_config") { -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel