From aeee649c2039962ef1aa1eb4a56fd851b0b4dba2 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Mon, 10 Feb 2025 10:07:28 +0530 Subject: [PATCH] mgr/dashboard: undefined while creating rbd image this only happens on a fresh cluster but consistently reproducible in a test environment. also cephfs also throws some error occasionally which is also being handled similarly Fixes: https://tracker.ceph.com/issues/68871 Signed-off-by: Nizamudeen A --- .../src/app/ceph/block/rbd-list/rbd-list.component.html | 2 +- .../src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html index 9cd8e0a7d7e..b1f36967d70 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-list/rbd-list.component.html @@ -55,7 +55,7 @@ - {{ value[2] | cdDate }} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts index 404ec20aac2..09c03e70d17 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-tabs/cephfs-tabs.component.ts @@ -112,8 +112,8 @@ export class CephfsTabsComponent implements OnChanges, OnDestroy { softRefresh() { const data = _.cloneDeep(this.data); // Forces update of tab tables on tab switch // Clients tab - this.clients = data.clients; - this.clients.status = new TableStatusViewCache(this.clients.status); + this.clients = data?.clients; + this.clients.status = new TableStatusViewCache(this.clients?.status); // Details tab this.details = { standbys: data.standbys, -- 2.39.5