From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 844401FF0B2 for ; Sun, 22 Nov 2026 02:27:36 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 44DEB21700; Sun, 22 Nov 2026 02:26:42 +0100 (CET) From: Thomas Lamprecht To: pve-devel@lists.proxmox.com Subject: [PATCH v3 manager 17/18] ui: san: show that a namespace uses native multipath Date: Sun, 22 Nov 2026 02:25:54 +0100 Message-ID: <20261122012605.1848824-18-t.lamprecht@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261122012605.1848824-1-t.lamprecht@proxmox.com> References: <20261122012605.1848824-1-t.lamprecht@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795310772464 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.146 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: O2XNAGZ6F23N4U4E7U454SLDT6IUVHVB X-Message-ID-Hash: O2XNAGZ6F23N4U4E7U454SLDT6IUVHVB X-MailFrom: t.lamprecht@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: The cluster-wide status lists the namespaces of NVMe over Fabrics storages too. They use the native multipath of the kernel, with neither an entry nor a storage that requests a map, so the Multipath column would call them unmanaged. Show "Native" for them, as the LUN list of a node does, and name them as namespaces in Paths by Node. Signed-off-by: Thomas Lamprecht --- www/manager6/dc/SAN.js | 16 ++++++++++++++-- www/manager6/window/SANLunState.js | 8 ++++---- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/www/manager6/dc/SAN.js b/www/manager6/dc/SAN.js index e30b5ef48..fdf2935bf 100644 --- a/www/manager6/dc/SAN.js +++ b/www/manager6/dc/SAN.js @@ -15,6 +15,7 @@ Ext.define('pve-san-status', { 'name', 'explicit', 'multipath-storage', + 'native', 'nodes', 'size', 'used-by-storage', @@ -118,6 +119,7 @@ Ext.define('PVE.dc.SANView', { Ext.create('PVE.window.SANLunState', { wwid: rec.get('wwid'), name: rec.get('name'), + nvme: !!rec.get('native'), autoShow: true, }); let setupItem = (type) => ({ @@ -258,7 +260,11 @@ Ext.define('PVE.dc.SANView', { disabled: !canModify, handler: function (button) { let lun = button.up('grid').getSelection()[0]; - let wwid = lun?.get('explicit') ? undefined : lun?.get('wwid'); + // a namespace uses native multipath, which takes no entry + let wwid = + lun?.get('explicit') || lun?.get('native') + ? undefined + : lun?.get('wwid'); edit({ wwid, isCreate: true }); }, }, @@ -381,7 +387,13 @@ Ext.define('PVE.dc.SANView', { width: 170, renderer: (value, md, rec) => { let storage = rec.get('multipath-storage'); - let kind = value ? 'manual' : storage ? 'storage' : 'unmanaged'; + let kind = rec.get('native') + ? 'native' + : value + ? 'manual' + : storage + ? 'storage' + : 'unmanaged'; return Ext.htmlEncode(PVE.SANUtils.multipathText(kind, storage)); }, }, diff --git a/www/manager6/window/SANLunState.js b/www/manager6/window/SANLunState.js index 5dfce247a..f84940fd8 100644 --- a/www/manager6/window/SANLunState.js +++ b/www/manager6/window/SANLunState.js @@ -23,12 +23,12 @@ Ext.define('PVE.window.SANLunState', { let title = me.nvme ? gettext('Storage {0}: Namespace State') : gettext('Storage {0}: LUN State'); + let pathsTitle = me.nvme + ? gettext('Namespace {0}: Paths by Node') + : gettext('LUN {0}: Paths by Node'); me.title = me.storage ? Ext.String.format(title, me.storage) - : Ext.String.format( - gettext('LUN {0}: Paths by Node'), - Ext.htmlEncode(me.name || me.wwid), - ); + : Ext.String.format(pathsTitle, Ext.htmlEncode(me.name || me.wwid)); // The other nodes set up the LUN of a new storage with their next status updates. let pendingUntil = me.storage ? Date.now() + 60000 : 0; let rstore = Ext.create('Proxmox.data.UpdateStore', {