From 857c3dc0ae5e1b99ad0bd11117c6a1c12c894874 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 11 May 2021 17:28:05 +0530 Subject: [PATCH] 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 (cherry picked from commit d95655cc4879c0e3e6edb0edd6e4114c1bdfc226) --- src/pybind/mgr/mgr_util.py | 1 + src/pybind/mgr/mirroring/fs/utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pybind/mgr/mgr_util.py b/src/pybind/mgr/mgr_util.py index 75d5b5c38eb43..29a6f631477ee 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 023622a046fdf..5e1d0537356d4 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...') -- 2.39.5