From f76f6a067497802e8567076e0e71d833bb0447e8 Mon Sep 17 00:00:00 2001 From: Dhairya Parmar Date: Mon, 28 Jul 2025 12:46:02 +0530 Subject: [PATCH] qa/tasks/cephfs: raise exception if incorrect fstype found otherwise it would get stuck in an infinite loop since the caller wait_until_mounted() checks for check_mounted_state() until it returns true. Signed-off-by: Dhairya Parmar --- qa/tasks/cephfs/fuse_mount.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index 5ba1340267fa..9df5accd6960 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -263,13 +263,12 @@ class FuseMountBase(CephFSMountBase): return False fstype = proc.stdout.getvalue().rstrip('\n') - if fstype == 'fuseblk': + if fstype in ('fuseblk', 'fuse'): log.info('ceph-fuse is mounted on %s', self.hostfs_mntpt) return True else: - log.debug('ceph-fuse not mounted, got fs type {fstype!r}'.format( - fstype=fstype)) - return False + raise RuntimeError('fstype expected fuseblk or fuse but found ' + f'{fstype}') def wait_until_mounted(self): """ -- 2.47.3