From d83c277ac1861df31d2a39d16e20c7bebbea676e Mon Sep 17 00:00:00 2001 From: Tatjana Dehler Date: Thu, 27 May 2021 11:46:50 +0200 Subject: [PATCH] mgr/dashboard: show partially deleted RBDs An RBD might be partially deleted if the deletion process has been started but was interrupted. In this case return the RBD as part of the RBD list and mark it as partially deleted. Fixes: https://tracker.ceph.com/issues/48603 Signed-off-by: Tatjana Dehler --- .../rbd-details/rbd-details.component.html | 6 +- .../app/ceph/block/rbd-form/rbd-form.model.ts | 3 + .../block/rbd-list/rbd-list.component.html | 22 +++++ .../block/rbd-list/rbd-list.component.scss | 5 + .../block/rbd-list/rbd-list.component.spec.ts | 43 ++++++-- .../ceph/block/rbd-list/rbd-list.component.ts | 23 ++++- src/pybind/mgr/dashboard/services/rbd.py | 37 +++++-- .../mgr/dashboard/tests/test_rbd_service.py | 98 ++++++++++++++++++- 8 files changed, 214 insertions(+), 23 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.html index 17188a1b2de..7503863e0fb 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-details/rbd-details.component.html @@ -2,7 +2,7 @@ Only available for RBD images with fast-diff enabled - +