]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: lazy-force unmount clients that have been evicted 46988/head
authorRishabh Dave <ridave@redhat.com>
Wed, 20 Jul 2022 09:46:53 +0000 (15:16 +0530)
committerRishabh Dave <ridave@redhat.com>
Fri, 19 Aug 2022 15:30:00 +0000 (21:00 +0530)
commitc279b47ec90367ed34255d8a4eb35c24f9453c86
tree7340562349a764b518a351f0cfe0213529358634
parentb79853fbe9d69c72a3f64d3d899201149c8111e7
qa/cephfs: lazy-force unmount clients that have been evicted

Before unmounting check if the client has been evicted and, if so, run
"umount -f -l" for the mount point of the client and cleanup the mount
right after it.

Attempting to unmount, cleanup or operate in any way over mount point
of a evicted client will hang the operation (and thereby our Python
code too). Lazy-force unmount prevents such hangs for our Python code
and also frees the mount point.

This commit also adds code to gather session info for kernel mounts
after mounting is successful. This is a necessity since network address
of session is needed to check if it is blocked by Ceph cluster.

Fixes: https://tracker.ceph.com/issues/56476
Signed-off-by: Rishabh Dave <ridave@redhat.com>
qa/tasks/cephfs/fuse_mount.py
qa/tasks/cephfs/kernel_mount.py
qa/tasks/cephfs/mount.py
qa/tasks/vstart_runner.py