From e0005f6b61f1b8acc6a74d296f32fdd4bf6a5883 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 17 Jan 2019 17:52:27 +0100 Subject: [PATCH] mgr/dashboard: Set mirror_mode to None Fixes http://tracker.ceph.com/issues/37870 Fixes https://github.com/rook/rook/issues/2404 Used existing fix from dc616c7d724a2580927ff8fb1fbc070d83dd67ef Signed-off-by: Sebastian Wagner --- src/pybind/mgr/dashboard/controllers/rbd_mirroring.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/dashboard/controllers/rbd_mirroring.py b/src/pybind/mgr/dashboard/controllers/rbd_mirroring.py index b90401e188549..11d6bd4cdc1a5 100644 --- a/src/pybind/mgr/dashboard/controllers/rbd_mirroring.py +++ b/src/pybind/mgr/dashboard/controllers/rbd_mirroring.py @@ -94,6 +94,7 @@ def get_daemons_and_pools(): # pylint: disable=R0915 mirror_mode = rbdctx.mirror_mode_get(ioctx) except: # noqa pylint: disable=W0702 logger.exception("Failed to query mirror mode %s", pool_name) + mirror_mode = None stats = {} if mirror_mode == rbd.RBD_MIRROR_MODE_DISABLED: -- 2.39.5