]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
qa/cephfs: look for mountpoint in cmdline file
authorRishabh Dave <ridave@redhat.com>
Tue, 26 May 2020 11:10:29 +0000 (16:40 +0530)
committerRishabh Dave <ridave@redhat.com>
Mon, 1 Jun 2020 18:23:02 +0000 (23:53 +0530)
commitea1432810c18d15c405f3a4864db983ad5cca91d
tree40ad8ed3269078c184a5fa9d65ab16cfc0bbbc4b
parent1ecea058c5988f120b93df482f5ba28263e45576
qa/cephfs: look for mountpoint in cmdline file

Look for self.mountpoint in the contents of /proc/<pid>/cmdline file
when finding asok file for the client so that vstart_runner.py won't end
up picking asok file for a client not created in current run.

This usually never happens so far because PID of newly created processes
is higher than that of previously created processes and list of asok
files returned by "glob.glob(asok_path)" in find_socket() is in
descending order of PIDs.

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