From: Dhairya Parmar Date: Mon, 28 Jul 2025 07:16:02 +0000 (+0530) Subject: qa/tasks/cephfs: raise exception if incorrect fstype found X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f76f6a067497802e8567076e0e71d833bb0447e8;p=ceph.git 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 --- 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): """