From: Kotresh HR Date: Fri, 18 Mar 2022 06:43:53 +0000 (+0530) Subject: mgr/volumes: Disable quota for mgr libcephfs connection X-Git-Tag: v16.2.11~498^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c9cb6a3f03e06402fefa34a5d1ff85f9e1d88c3f;p=ceph.git mgr/volumes: Disable quota for mgr libcephfs connection This is done to give 'mgr' libcephfs connection right to bypass quota. The mgr/volumes plugin maintains configuration files with in the directory where the user has enforced quota. So when the quota is met, certain mgr/volumes apis don't work as intended. e.g., When subvolumegroup quota is met, the group's subvolume removal with '--retain-snapshots' fails. Fixes: https://tracker.ceph.com/issues/53509 Signed-off-by: Kotresh HR (cherry picked from commit 3cfcbef284f371bfbec01311e6dad0172572fe9c) --- diff --git a/src/pybind/mgr/mgr_util.py b/src/pybind/mgr/mgr_util.py index 04bcc8485b26..1a86967cb4a3 100644 --- a/src/pybind/mgr/mgr_util.py +++ b/src/pybind/mgr/mgr_util.py @@ -154,6 +154,7 @@ class CephfsConnectionPool(object): 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") + self.fs.conf_set("client_quota", "false") logger.debug("CephFS initializing...") self.fs.init() logger.debug("CephFS mounting...")