public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Daniel Kral <d.kral@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH ha-manager 1/7] sim: hardware: remove service default groups
Date: Mon, 17 Nov 2025 18:21:00 +0100	[thread overview]
Message-ID: <20251117172147.533969-2-d.kral@proxmox.com> (raw)
In-Reply-To: <20251117172147.533969-1-d.kral@proxmox.com>

These groups are not enforced unless these are explicitly defined in the
HA group config, but even then it would be rather unexpected for users
if they haven't explicitly provided that information in the first place.

Furthermore these are neither used in test cases nor displayed or
modifiable in the pve-ha-simulator, so remove them.

Signed-off-by: Daniel Kral <d.kral@proxmox.com>
---
 src/PVE/HA/Sim/Hardware.pm | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/PVE/HA/Sim/Hardware.pm b/src/PVE/HA/Sim/Hardware.pm
index 688277df..fd119beb 100644
--- a/src/PVE/HA/Sim/Hardware.pm
+++ b/src/PVE/HA/Sim/Hardware.pm
@@ -456,12 +456,12 @@ sub new {
         copy("$testdir/service_config", "$statusdir/service_config");
     } else {
         my $conf = {
-            'vm:101' => { node => 'node1', group => 'prefer_node1' },
-            'vm:102' => { node => 'node2', group => 'prefer_node2' },
-            'vm:103' => { node => 'node3', group => 'prefer_node3' },
-            'vm:104' => { node => 'node1', group => 'prefer_node1' },
-            'vm:105' => { node => 'node2', group => 'prefer_node2' },
-            'vm:106' => { node => 'node3', group => 'prefer_node3' },
+            'vm:101' => { node => 'node1' },
+            'vm:102' => { node => 'node2' },
+            'vm:103' => { node => 'node3' },
+            'vm:104' => { node => 'node1' },
+            'vm:105' => { node => 'node2' },
+            'vm:106' => { node => 'node3' },
         };
         $self->write_service_config($conf);
     }
-- 
2.47.3



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


  reply	other threads:[~2025-11-17 17:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-17 17:20 [pve-devel] [PATCH ha-manager 0/7] Some pve-ha-simulator fixups Daniel Kral
2025-11-17 17:21 ` Daniel Kral [this message]
2025-11-17 17:21 ` [pve-devel] [PATCH ha-manager 2/7] sim: fix read and write to static service stats' maxmem Daniel Kral
2025-11-17 17:21 ` [pve-devel] [PATCH ha-manager 3/7] sim: hardware: initialize default fallback static_service_stats Daniel Kral
2025-11-17 17:21 ` [pve-devel] [PATCH ha-manager 4/7] sim: hardware: fix ha resource existence check in set_static_service_stats Daniel Kral
2025-11-17 17:21 ` [pve-devel] [PATCH ha-manager 5/7] sim: hardware: do not print stat changes " Daniel Kral
2025-11-17 17:21 ` [pve-devel] [PATCH ha-manager 6/7] sim: hardware: delete static service stats on service deletion Daniel Kral
2025-11-17 17:21 ` [pve-devel] [PATCH ha-manager 7/7] d/rules: add new PVE dependencies from PVE::Tools to pve-ha-simulator Daniel Kral
2025-11-17 21:37 ` [pve-devel] applied: [PATCH ha-manager 0/7] Some pve-ha-simulator fixups Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251117172147.533969-2-d.kral@proxmox.com \
    --to=d.kral@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal