From: Kotresh HR Date: Tue, 11 May 2021 11:58:05 +0000 (+0530) Subject: mgr: Set client_check_pool_perm to false X-Git-Tag: v17.1.0~1763^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d95655cc4879c0e3e6edb0edd6e4114c1bdfc226;p=ceph.git mgr: Set client_check_pool_perm to false 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 --- diff --git a/src/pybind/mgr/mgr_util.py b/src/pybind/mgr/mgr_util.py index 75d5b5c38eb4..29a6f631477e 100644 --- a/src/pybind/mgr/mgr_util.py +++ b/src/pybind/mgr/mgr_util.py @@ -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...") diff --git a/src/pybind/mgr/mirroring/fs/utils.py b/src/pybind/mgr/mirroring/fs/utils.py index 023622a046fd..5e1d0537356d 100644 --- a/src/pybind/mgr/mirroring/fs/utils.py +++ b/src/pybind/mgr/mirroring/fs/utils.py @@ -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...')