]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/cephfs: set omit_sudo for cmd mounting FUSE conn dir
authorRishabh Dave <ridave@redhat.com>
Wed, 10 Aug 2022 10:13:25 +0000 (15:43 +0530)
committerRishabh Dave <ridave@redhat.com>
Tue, 12 Sep 2023 07:56:00 +0000 (13:26 +0530)
commit7d1f6d70f19b0144e31140a7887f5e2cd14d2dd0
tree76fe0ee57eb5dd55e12576ed9a6c1cd1bfcb59dd
parentc4b2ccd9d68ce408d5e4603d281b061b16fd7e09
qa/cephfs: set omit_sudo for cmd mounting FUSE conn dir

vstart_runner.py removes sudo from the command arguments when "omit_sudo"
is not explicitly set to "False". This leads to 2 error messages in output
of vstart_runner.py which are copied at the end of this commit message.
Setting "omit_sudo=False" for the execution of command should remove both
of these error messages.

This also fixes the potential crash of vstart_runner.py when the FUSE
connections directory is not mounted on the machine and it requires
superuser privileges to mount it.

The 2 error messages copied as it is from the log -

DEBUG:__main__:"sudo" was omitted from the following cmd args before execution and logging using function overriding; check vstart_runner.py for more details.
DEBUG:__main__:> sudo mount -t fusectl /sys/fs/fuse/connections /sys/fs/fuse/connections
mount: /sys/fs/fuse/connections: must be superuser to use mount.

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