]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix the rbd mirroring configure check 51324/head
authorNizamudeen A <nia@redhat.com>
Thu, 27 Apr 2023 11:24:24 +0000 (16:54 +0530)
committerNizamudeen A <nia@redhat.com>
Wed, 3 May 2023 05:59:59 +0000 (11:29 +0530)
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 <nia@redhat.com>
(cherry picked from commit 09de6be991c4240065bf5774e798b3d274443cff)

src/pybind/mgr/dashboard/controllers/rbd_mirroring.py

index b2c0527cc72ff2d5614350cb4e42a6877696dce7..c0d3f1f5d2376d1596fdc67fe6a66443780b4b71 100644 (file)
@@ -614,7 +614,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