]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/cephfs: check before mounting fuse connections directory
authorRishabh Dave <ridave@redhat.com>
Tue, 9 Aug 2022 09:09:18 +0000 (14:39 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 12 Sep 2023 07:55:45 +0000 (13:25 +0530)
commitc4b2ccd9d68ce408d5e4603d281b061b16fd7e09
tree39075f42f9fae010d728f2f74bddc1e4b9849114
parent3125eb20b9dbd0df7bb030691c6103374e9f6457
qa/cephfs: check before mounting fuse connections directory

Check if "/sys/fs/fuse/connections" is already mounted before attempting
to mount it again. Doing so leads to unnecessary error messages in the
vstart_runner.py's output (and most likely in logs for teuthology test
runs too) which confuses the users. See end for the error message.

Also, remove "check_status=False" so that the when the commands crashes
the testing is halted immediately. Initially, this must've been added to
ignore errors generated from re-mounting FUSE connections directory
repeatedly.

The error message -

DEBUG:__main__:> sudo mount -t fusectl /sys/fs/fuse/connections /sys/fs/fuse/connections
mount: /sys/fs/fuse/connections: /sys/fs/fuse/connections already mounted or mount point busy.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/fuse_mount.py