]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: run() cleanup whether FS was mounted or not 34951/head
authorRishabh Dave <ridave@redhat.com>
Thu, 7 May 2020 12:33:41 +0000 (18:03 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 14 May 2020 04:36:21 +0000 (10:06 +0530)
commite57c86fab39bb28096f2efa77afb575f3afffa59
tree1473550304077cd24fe7595329c2347e578949b6
parent9486206f5ab4b747f6ec7b87e2a446c8fdc7df89
qa/cephfs: run() cleanup whether FS was mounted or not

In case the mount command in mount() fails, it would still have created
the mountpoint and network namespace for the FS's mount. Therefore, run
cleanup() and cleanup_netns() in umount() and umount_wait() even when
self.mounted is set to False.

Also, move the call to cleanup_netns() in cleanup().

Fixes: https://tracker.ceph.com/issues/45430
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