public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH ha-manager 1/2] manager: support older versioning schema for ha group migration
@ 2025-08-04 14:20 Daniel Kral
  2025-08-04 14:20 ` [pve-devel] [PATCH ha-manager 2/2] tree-wide: update description of pve-ha-node-list standard option Daniel Kral
  2025-08-04 19:33 ` [pve-devel] applied: [PATCH ha-manager 1/2] manager: support older versioning schema for ha group migration Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Kral @ 2025-08-04 14:20 UTC (permalink / raw)
  To: pve-devel

Prior to the Proxmox VE 8.x series, the pve-manager is versioned in the
format of `M.m-p`. Versions prior to Proxmox VE 8.x are already EOL'd,
but this change prevents any "Use of uninitialized value" log messages
if one of the nodes is on a version with such a versioning scheme.

Signed-off-by: Daniel Kral <d.kral@proxmox.com>
---
Missed that patch in the v2 for the follow-up for the ha-manager (but
was included in the v1).

Not really important (i.e. doesn't result in any fatal errors), but gets
rid of a "use of unitialized value" warning from perl while running the
tests/looking in the syslog in the rather unlikely (unsupported) case
that one has the CRM node running PVE 9.* and another node still running
7.4...

 src/PVE/HA/Manager.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/HA/Manager.pm b/src/PVE/HA/Manager.pm
index 884d098b..ba59f642 100644
--- a/src/PVE/HA/Manager.pm
+++ b/src/PVE/HA/Manager.pm
@@ -539,7 +539,7 @@ my $have_groups_been_migrated = sub {
 my $get_version_parts = sub {
     my ($node_version) = @_;
 
-    return $node_version =~ m/^(\d+)\.(\d+)\.(\d+)(?:~(\d+))?/;
+    return $node_version =~ m/^(\d+)\.(\d+)(?:\.|-)(\d+)(?:~(\d+))?/;
 };
 
 my $has_node_min_version = sub {

-- 
2.47.2



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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-04 19:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-04 14:20 [pve-devel] [PATCH ha-manager 1/2] manager: support older versioning schema for ha group migration Daniel Kral
2025-08-04 14:20 ` [pve-devel] [PATCH ha-manager 2/2] tree-wide: update description of pve-ha-node-list standard option Daniel Kral
2025-08-04 19:33 ` [pve-devel] applied: [PATCH ha-manager 1/2] manager: support older versioning schema for ha group migration Thomas Lamprecht

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