From f07f12152a2d62e9a07db479252b9896348999f0 Mon Sep 17 00:00:00 2001 From: Vallari Agrawal Date: Mon, 20 Apr 2026 15:26:18 +0530 Subject: [PATCH] mgr/dashboard: show rados ns in 'ceph nvmeof top io' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In nvmeof_top_cli.py, show RADOS namespace name in "RBD Image" column. Example: Before: “rbd/image10” After: “rbd/ns2/image10" Fixes: https://tracker.ceph.com/issues/76116 Signed-off-by: Vallari Agrawal --- src/pybind/mgr/dashboard/services/nvmeof_top_cli.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/services/nvmeof_top_cli.py b/src/pybind/mgr/dashboard/services/nvmeof_top_cli.py index b5a1a510e576..63faf89d1096 100644 --- a/src/pybind/mgr/dashboard/services/nvmeof_top_cli.py +++ b/src/pybind/mgr/dashboard/services/nvmeof_top_cli.py @@ -216,9 +216,15 @@ else: continue perf_stats.calculate(self.delay) + if ns.rados_namespace_name: + rbd_image_path = (f"{ns.rbd_pool_name}/{ns.rados_namespace_name}/" + f"{ns.rbd_image_name}") + else: + rbd_image_path = f"{ns.rbd_pool_name}/{ns.rbd_image_name}" + ns_data.append(( ns.nsid, - f"{ns.rbd_pool_name}/{ns.rbd_image_name}", + rbd_image_path, int(perf_stats.total_ops_rate), int(perf_stats.read_ops_rate), f"{self.bytes_to_MB(perf_stats.read_bytes_rate):3.2f}", -- 2.47.3