From 90951a3ea1e9a23ff6c462e8a7cfad4cab5760a3 Mon Sep 17 00:00:00 2001 From: Milind Changire Date: Fri, 10 May 2024 14:34:43 +0530 Subject: [PATCH] mgr/snap_schedule: correctly fetch mds_max_snaps_per_dir from mds Fixes: https://tracker.ceph.com/issues/65895 Signed-off-by: Milind Changire (cherry picked from commit 529cdd3424920035c9b6f476e43a4ea83d29db43) --- src/pybind/mgr/snap_schedule/fs/schedule_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/snap_schedule/fs/schedule_client.py b/src/pybind/mgr/snap_schedule/fs/schedule_client.py index 1c46ccc6933..b58f20f1275 100644 --- a/src/pybind/mgr/snap_schedule/fs/schedule_client.py +++ b/src/pybind/mgr/snap_schedule/fs/schedule_client.py @@ -361,7 +361,7 @@ class SnapSchedClient(CephfsClient): path = sched.path prune_candidates = set() time = datetime.now(timezone.utc) - mds_max_snaps_per_dir = self.mgr.get_ceph_option('mds_max_snaps_per_dir') + mds_max_snaps_per_dir = self.mgr.get_foreign_ceph_option('mds', 'mds_max_snaps_per_dir') with open_filesystem(self, sched.fs) as fs_handle: snap_dir = self.mgr.rados.conf_get('client_snapdir') with fs_handle.opendir(f'{path}/{snap_dir}') as d_handle: -- 2.39.5