public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Christian Ebner <c.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager 2/3] ui: cluster join info: include the cluster's manager version
Date: Mon, 23 Nov 2026 18:59:14 +0100	[thread overview]
Message-ID: <20261123175915.396455-3-c.ebner@proxmox.com> (raw)
In-Reply-To: <20261123175915.396455-1-c.ebner@proxmox.com>

The encoded join information gets pasted into the join dialog of the
joining node, which has no other way to learn which Proxmox VE version
the cluster runs before actually joining. Include the version reported
by the join info API, so that the join dialog can point out a version
mismatch.

The version is only added if the API returned it, so older clusters
produce the same join information as before.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
 www/manager6/dc/Cluster.js | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/www/manager6/dc/Cluster.js b/www/manager6/dc/Cluster.js
index 2ec5588c..d832f340 100644
--- a/www/manager6/dc/Cluster.js
+++ b/www/manager6/dc/Cluster.js
@@ -36,6 +36,7 @@ Ext.define('PVE.ClusterAdministration', {
         parent: null,
         data: {
             totem: {},
+            pveVersion: undefined,
             nodelist: [],
             preferred_node: {
                 name: '',
@@ -79,6 +80,7 @@ Ext.define('PVE.ClusterAdministration', {
                             }
                         }
                         vm.set('totem', {});
+                        vm.set('pveVersion', undefined);
                         vm.set('isInCluster', false);
                         vm.set('nodelist', []);
                         vm.set('preferred_node', {
@@ -89,6 +91,7 @@ Ext.define('PVE.ClusterAdministration', {
                         return;
                     }
                     vm.set('totem', data.totem);
+                    vm.set('pveVersion', data.pve_version);
                     vm.set('isInCluster', !!data.totem.cluster_name);
                     vm.set('nodelist', data.nodelist);
 
@@ -125,15 +128,21 @@ Ext.define('PVE.ClusterAdministration', {
 
                 onClusterInfo: function () {
                     let vm = this.getViewModel();
+                    let joinInfo = {
+                        ipAddress: vm.get('preferred_node.addr'),
+                        fingerprint: vm.get('preferred_node.fp'),
+                        peerLinks: vm.get('preferred_node.peerLinks'),
+                        ring_addr: vm.get('preferred_node.ring_addr'),
+                        totem: vm.get('totem'),
+                    };
+                    // older clusters do not expose their version
+                    let pveVersion = vm.get('pveVersion');
+                    if (pveVersion) {
+                        joinInfo.pveVersion = pveVersion;
+                    }
                     Ext.create('PVE.ClusterInfoWindow', {
                         autoShow: true,
-                        joinInfo: {
-                            ipAddress: vm.get('preferred_node.addr'),
-                            fingerprint: vm.get('preferred_node.fp'),
-                            peerLinks: vm.get('preferred_node.peerLinks'),
-                            ring_addr: vm.get('preferred_node.ring_addr'),
-                            totem: vm.get('totem'),
-                        },
+                        joinInfo,
                     });
                 },
 
-- 
2.47.3





  parent reply	other threads:[~2026-11-23 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 17:59 [PATCH cluster/manager 0/3] cluster join: check node versions and warn when joining cluster with version difference Christian Ebner
2026-11-23 17:59 ` [PATCH pve-cluster 1/3] api: join info: include the cluster's highest manager version Christian Ebner
2026-11-23 17:59 ` Christian Ebner [this message]
2026-11-23 17:59 ` [PATCH pve-manager 3/3] ui: cluster join: point out version mismatch with the cluster Christian Ebner

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=20261123175915.396455-3-c.ebner@proxmox.com \
    --to=c.ebner@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