all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Dietmar Maurer <dietmar@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [RFC pve-manager 24/27] ui: san luns: show multipath path state
Date: Fri, 31 Jul 2026 12:21:53 +0200	[thread overview]
Message-ID: <20260731102156.3947857-25-dietmar@proxmox.com> (raw)
In-Reply-To: <20260731102156.3947857-1-dietmar@proxmox.com>

Render the active path count next to the total and prepend a warning
icon when they differ, so a degraded multipath device stands out. A
row expander shows the member paths with their state and, depending
on the multipath stack, checker state and WWPNs (multipathd) or ANA
state and controller address (native NVMe multipath), plus the fault
counter, which would otherwise require "multipath -ll" or digging
through sysfs on the CLI. The FC storage wizard LUN grid picks up
the degraded hint through the shared renderer.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
---
 www/manager6/Utils.js        | 12 +++++-
 www/manager6/node/SANLuns.js | 74 ++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+), 1 deletion(-)

diff --git a/www/manager6/Utils.js b/www/manager6/Utils.js
index 5972e1aa..a34e1363 100644
--- a/www/manager6/Utils.js
+++ b/www/manager6/Utils.js
@@ -1102,7 +1102,17 @@ Ext.define('PVE.Utils', {
             // only multipath mapped devices report their path count
             let paths = rec.get('paths');
             if (paths) {
-                text += ` (${paths} ${ngettext('path', 'paths', paths)})`;
+                let active = rec.get('active-paths');
+                if (Ext.isNumeric(active) && active < paths) {
+                    let qtip = Ext.htmlEncode(
+                        gettext('Some paths failed, the multipath device is degraded'),
+                    );
+                    text =
+                        `<i data-qtip="${qtip}" class="fa fa-exclamation-triangle warning"></i> ` +
+                        `${text} (${active}/${paths} ${gettext('paths')})`;
+                } else {
+                    text += ` (${paths} ${ngettext('path', 'paths', paths)})`;
+                }
             }
             return text;
         },
diff --git a/www/manager6/node/SANLuns.js b/www/manager6/node/SANLuns.js
index b2b9e24d..ce11c39b 100644
--- a/www/manager6/node/SANLuns.js
+++ b/www/manager6/node/SANLuns.js
@@ -15,6 +15,77 @@ Ext.define('PVE.node.SANLunList', {
         trackOver: false,
     },
 
+    plugins: [
+        {
+            ptype: 'rowexpander',
+            expandOnDblClick: false,
+            scrollIntoViewOnExpand: false,
+            rowBodyTpl: [
+                '{[this.renderDetails(values)]}',
+                {
+                    renderDetails: function (values) {
+                        let enc = Ext.htmlEncode;
+                        let lines = [];
+                        if (values.wwn) {
+                            lines.push(`<b>WWN:</b> ${enc(values.wwn)}`);
+                        }
+                        if (values.serial) {
+                            lines.push(`<b>${gettext('Serial')}:</b> ${enc(values.serial)}`);
+                        }
+                        let faults = values['path-faults'];
+                        if (Ext.isNumeric(faults)) {
+                            lines.push(
+                                `<b>${gettext('Path Failures Since Map Creation')}:</b> ${enc(faults)}`,
+                            );
+                        }
+                        let paths = values['path-list'] || [];
+                        if (paths.length) {
+                            // multipathd paths report checker state and WWPNs, NVMe
+                            // paths their ANA state and controller address
+                            let goodStates = { active: 1, live: 1 };
+                            let goodAna = { optimized: 1, 'non-optimized': 1 };
+                            let columns = [
+                                { key: 'device', label: gettext('Path') },
+                                {
+                                    key: 'state',
+                                    label: gettext('State'),
+                                    bad: (path) => !goodStates[path.state],
+                                },
+                                { key: 'checker-state', label: gettext('Checker') },
+                                {
+                                    key: 'ana-state',
+                                    label: 'ANA',
+                                    bad: (path) => !goodAna[path['ana-state']],
+                                },
+                                { key: 'host-wwpn', label: 'Host WWPN' },
+                                { key: 'target-wwpn', label: 'Target WWPN' },
+                                { key: 'address', label: gettext('Address') },
+                            ].filter((col) => paths.some((path) => path[col.key] !== undefined));
+                            let header = columns
+                                .map((col) => `<th style="text-align: left;">${col.label}</th>`)
+                                .join('');
+                            let rows = paths.map((path) => {
+                                let cells = columns.map((col) => {
+                                    let text = enc(path[col.key] ?? '');
+                                    if (text !== '' && col.bad && col.bad(path)) {
+                                        text = `<i class="fa fa-exclamation-triangle warning"></i> ${text}`;
+                                    }
+                                    return text;
+                                });
+                                return `<tr><td>${cells.join('</td><td>')}</td></tr>`;
+                            });
+                            lines.push(
+                                `<table style="border-spacing: 10px 2px;">` +
+                                    `<tr>${header}</tr>${rows.join('')}</table>`,
+                            );
+                        }
+                        return lines.join('<br>');
+                    },
+                },
+            ],
+        },
+    ],
+
     columns: [
         {
             header: gettext('Device'),
@@ -105,6 +176,9 @@ Ext.define('PVE.node.SANLunList', {
                 'serial',
                 'wwn',
                 'paths',
+                'active-paths',
+                'path-faults',
+                'path-list',
                 'usage',
                 'vgname',
                 'used-by-storage',
-- 
2.47.3




  parent reply	other threads:[~2026-07-31 10:24 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-31 10:21 [RFC pve-storage/proxmox-widget-toolkit/pve-manager 00/27] add guided remote storage setup and SAN visibility Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 01/27] diskmanage: collect disk transport type from lsblk Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 02/27] diskmanage: add helper to list multipath devices Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 03/27] diskmanage: qualify NVMe over fabrics transport Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 04/27] disks: list: add include-remote parameter Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 05/27] diskmanage: include iSCSI session devices in disk enumeration Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 06/27] diskmanage: link multipath member disks to their map device Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 07/27] iscsi: factor out session device map from device list Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 08/27] api: scan: add san-luns method listing SAN LUN candidates Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 09/27] disks: lvm: allow creating volume groups on multipath devices Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 10/27] diskmanage: add helper querying multipath path state Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 11/27] diskmanage: add helper querying NVMe native " Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 12/27] api: scan: san-luns: report " Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 13/27] iscsi plugin: list sessions of all transports and capture transport Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-storage 14/27] api: add node-level iSCSI initiator target and session API Dietmar Maurer
2026-07-31 10:21 ` [RFC proxmox-widget-toolkit 15/27] disk selectors: allow opting into remote devices Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 16/27] ui: storage: allow switching the scan node of the NFS/CIFS scan combos Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 17/27] ui: storage: add guided remote storage wizard with NFS support Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 18/27] ui: storage wizard: add SMB/CIFS support Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 19/27] ui: storage wizard: add iSCSI support Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 20/27] ui: storage wizard: add FC-attached SAN (shared LVM) support Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 21/27] ui: storage wizard: add ZFS over iSCSI support Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 22/27] ui: dc: storage: add remote storage wizard entry to the add menu Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 23/27] ui: node: add SAN LUNs panel Dietmar Maurer
2026-07-31 10:21 ` Dietmar Maurer [this message]
2026-07-31 10:21 ` [RFC pve-manager 25/27] api: nodes: add iSCSI initiator API endpoint Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 26/27] pvenode: add iscsi commands Dietmar Maurer
2026-07-31 10:21 ` [RFC pve-manager 27/27] ui: san luns: show iSCSI targets and sessions Dietmar Maurer

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=20260731102156.3947857-25-dietmar@proxmox.com \
    --to=dietmar@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal