[pve-devel] [PATCH ha-manager 8/9] sim: set default cpu count and memory on new nodes
Maximiliano Sandoval
m.sandoval at proxmox.com
Tue Oct 14 11:47:26 CEST 2025
Otherwise when switching to the static crs a warning would be thrown.
Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
src/PVE/HA/Sim/Hardware.pm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/PVE/HA/Sim/Hardware.pm b/src/PVE/HA/Sim/Hardware.pm
index 0747dde..2b63f5a 100644
--- a/src/PVE/HA/Sim/Hardware.pm
+++ b/src/PVE/HA/Sim/Hardware.pm
@@ -471,9 +471,9 @@ sub new {
|| die "Copy failed: $!\n";
} else {
my $cstatus = {
- node1 => { power => 'off', network => 'off' },
- node2 => { power => 'off', network => 'off' },
- node3 => { power => 'off', network => 'off' },
+ node1 => { power => 'off', network => 'off', cpus => 24, memory => 131072 },
+ node2 => { power => 'off', network => 'off', cpus => 24, memory => 131072 },
+ node3 => { power => 'off', network => 'off', cpus => 24, memory => 131072 },
};
$self->write_hardware_status_nolock($cstatus);
}
--
2.47.3
More information about the pve-devel
mailing list