From 3703610abcac5b74e6d1e9b8b3fada31eb5c4ca0 Mon Sep 17 00:00:00 2001 From: Neeraj Pratap Singh Date: Thu, 13 Oct 2022 21:54:46 +0530 Subject: [PATCH] qa: fix QA failure related to client_config Signed-off-by: Neeraj Pratap Singh --- qa/tasks/cephfs/kernel_mount.py | 1 + qa/tasks/cephfs/test_snap_schedules.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/kernel_mount.py b/qa/tasks/cephfs/kernel_mount.py index fbcfc775c0f..faf0aa19b86 100644 --- a/qa/tasks/cephfs/kernel_mount.py +++ b/qa/tasks/cephfs/kernel_mount.py @@ -28,6 +28,7 @@ class KernelMount(CephFSMount): client_keyring_path=client_keyring_path, hostfs_mntpt=hostfs_mntpt, cephfs_name=cephfs_name, cephfs_mntpt=cephfs_mntpt, brxnet=brxnet) + self.client_config = config self.rbytes = config.get('rbytes', False) self.snapdirname = config.get('snapdirname', '.snap') self.inst = None diff --git a/qa/tasks/cephfs/test_snap_schedules.py b/qa/tasks/cephfs/test_snap_schedules.py index aa285820db9..f3899d82273 100644 --- a/qa/tasks/cephfs/test_snap_schedules.py +++ b/qa/tasks/cephfs/test_snap_schedules.py @@ -463,7 +463,7 @@ class TestSnapSchedulesSnapdir(TestSnapSchedulesHelper): from tasks.cephfs.kernel_mount import KernelMount if isinstance(self.mount_a, KernelMount): - sdn = self.mount_a.config.get('snapdirname', '.snap') + sdn = self.mount_a.client_config.get('snapdirname', '.snap') elif isinstance(self.mount_a, FuseMount): sdn = self.mount_a.client_config.get('client_snapdir', '.snap') self.fs.set_ceph_conf('client', 'client snapdir', sdn) -- 2.47.3