]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Set mirror_mode to None 26009/head
authorSebastian Wagner <sebastian.wagner@suse.com>
Thu, 17 Jan 2019 16:52:27 +0000 (17:52 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 17 Jan 2019 16:54:35 +0000 (17:54 +0100)
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 <sebastian.wagner@suse.com>
src/pybind/mgr/dashboard/controllers/rbd_mirroring.py

index b90401e1885493a82d277e33d25d0c6e1ee45782..11d6bd4cdc1a5994644eeffa22d9c014f38b4482 100644 (file)
@@ -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: