]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
ui: utils: monitor_ceph_installed: avoid setting nodename to localhost
authorAaron Lauterer <a.lauterer@proxmox.com>
Thu, 20 Apr 2023 12:31:41 +0000 (14:31 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 22 Apr 2023 07:50:42 +0000 (09:50 +0200)
If a user is accessing the Ceph panel via Datacenter -> Ceph, then the
install & config wizard might be shown. The nodename that is passed to
the wizard  will decide the ID of the initial MON and MGR services.

Therefore, don't fall back to 'localhost' but the actual name of the
node to which we are connected to. The result will be that the first MON
and MGR will have the expected ID instead of 'localhost'.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
www/manager6/Utils.js

index 94e75d5c4139d70201dbbeab038cf21205025040..d5dd2999081ec6970bd2122da9d61caf43d3ce0b 100644 (file)
@@ -1722,7 +1722,7 @@ Ext.define('PVE.Utils', {
            rstore,
            /not (installed|initialized)/i,
            (_, error) => {
-               nodename = nodename || 'localhost';
+               nodename = nodename || Proxmox.NodeName;
                let maskTarget = maskOwnerCt ? view.ownerCt : view;
                rstore.stopUpdate();
                PVE.Utils.showCephInstallOrMask(maskTarget, error.statusText, nodename, win => {