From: Nizamudeen A Date: Mon, 10 Feb 2025 04:37:28 +0000 (+0530) Subject: mgr/dashboard: undefined while creating rbd image X-Git-Tag: v20.3.0~378^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=aeee649c2039962ef1aa1eb4a56fd851b0b4dba2;p=ceph.git 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 --- 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 9cd8e0a7d7e8..b1f36967d70c 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 404ec20aac28..09c03e70d172 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,