]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs: raise exception if incorrect fstype found 64709/head
authorDhairya Parmar <dparmar@redhat.com>
Mon, 28 Jul 2025 07:16:02 +0000 (12:46 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Tue, 16 Sep 2025 11:04:59 +0000 (16:34 +0530)
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 <dparmar@redhat.com>
qa/tasks/cephfs/fuse_mount.py

index 5ba1340267fabaad94324b68b815613ccc85a6e2..9df5accd696097e94fff81e2809993146d1ebc69 100644 (file)
@@ -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):
         """