From d5ca89f1364ee9720ace6cf613eb3b8b1b09c0c7 Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Thu, 27 Apr 2023 16:54:24 +0530 Subject: [PATCH] mgr/dashboard: fix the rbd mirroring configure check In one-way mirroring, the condition we are checking now for configuring the mirroring will fail because only one cluster needs to have the mirror daemon present. Thus even if mirroring is successfuly happening the page won't load. For now relaxing the rule until we find a better api call to check for the status Fixes: https://tracker.ceph.com/issues/59573 Signed-off-by: Nizamudeen A (cherry picked from commit 09de6be991c4240065bf5774e798b3d274443cff) --- src/pybind/mgr/dashboard/controllers/rbd_mirroring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/rbd_mirroring.py b/src/pybind/mgr/dashboard/controllers/rbd_mirroring.py index 65eb0b56e8ba..2ee53fc1ad46 100644 --- a/src/pybind/mgr/dashboard/controllers/rbd_mirroring.py +++ b/src/pybind/mgr/dashboard/controllers/rbd_mirroring.py @@ -649,7 +649,7 @@ class RbdMirroringStatus(BaseController): # using dashboard. if not orch_status['available']: return status - if not CephService.get_service_list('rbd-mirror') or not CephService.get_pool_list('rbd'): + if not CephService.get_service_list('rbd-mirror') and not CephService.get_pool_list('rbd'): status['available'] = False status['message'] = 'RBD mirroring is not configured' # type: ignore return status -- 2.47.3