mirror of
https://github.com/ceph/ceph
synced 2024-12-27 14:03:25 +00:00
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>
This commit is contained in:
parent
3125eb20b9
commit
c4b2ccd9d6
@ -144,9 +144,11 @@ class FuseMount(CephFSMount):
|
||||
|
||||
self.client_remote.run(args=['sudo', 'modprobe', 'fuse'],
|
||||
check_status=False)
|
||||
self.client_remote.run(
|
||||
args=["sudo", "mount", "-t", "fusectl", conn_dir, conn_dir],
|
||||
check_status=False, timeout=(30))
|
||||
|
||||
if not self.client_remote.is_mounted(conn_dir):
|
||||
self.client_remote.run(
|
||||
args=["sudo", "mount", "-t", "fusectl", conn_dir, conn_dir],
|
||||
timeout=30)
|
||||
|
||||
try:
|
||||
ls_str = self.client_remote.sh("ls " + conn_dir,
|
||||
|
Loading…
Reference in New Issue
Block a user