]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr: Set client_check_pool_perm to false
authorKotresh HR <khiremat@redhat.com>
Tue, 11 May 2021 11:58:05 +0000 (17:28 +0530)
committerKotresh HR <khiremat@redhat.com>
Fri, 4 Jun 2021 07:09:50 +0000 (12:39 +0530)
When osd is full, checking pool permission causes
mgr to hang. Hence disabling it.

Fixes: https://tracker.ceph.com/issues/50532
Signed-off-by: Kotresh HR <khiremat@redhat.com>
(cherry picked from commit d95655cc4879c0e3e6edb0edd6e4114c1bdfc226)

src/pybind/mgr/mgr_util.py
src/pybind/mgr/mirroring/fs/utils.py

index 75d5b5c38eb433b345208d081909d7909bc592bd..29a6f631477ee39c88b11aa879cd8cd8ce5dbb62 100644 (file)
@@ -149,6 +149,7 @@ class CephfsConnectionPool(object):
             logger.debug("Setting user ID and group ID of CephFS mount as root...")
             self.fs.conf_set("client_mount_uid", "0")
             self.fs.conf_set("client_mount_gid", "0")
+            self.fs.conf_set("client_check_pool_perm", "false")
             logger.debug("CephFS initializing...")
             self.fs.init()
             logger.debug("CephFS mounting...")
index 023622a046fdfe35956637a54738fed570d001d6..5e1d0537356d408b0d574b39977411ce0526889d 100644 (file)
@@ -51,6 +51,7 @@ def connect_to_filesystem(client_name, cluster_name, fs_name, desc, conf_dct={})
         fs = cephfs.LibCephFS(rados_inst=cluster)
         fs.conf_set("client_mount_uid", "0")
         fs.conf_set("client_mount_gid", "0")
+        fs.conf_set("client_check_pool_perm", "false")
         log.debug('CephFS initializing...')
         fs.init()
         log.debug('CephFS mounting...')