]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/cephfs: allow reusing mount objects and add remount method
authorRishabh Dave <ridave@redhat.com>
Mon, 27 Jan 2020 06:07:44 +0000 (11:37 +0530)
committerRishabh Dave <ridave@redhat.com>
Thu, 10 Sep 2020 11:40:51 +0000 (17:10 +0530)
commit07e493ffb581cac1ae85deac0f8b502f35a75e39
treef99e39762a9635e9422a0a3723a1287b48cfc09a
parent8301c44c70e2a5246506394a438d6d4f952aab54
qa/cephfs: allow reusing mount objects and add remount method

This commit introduces following two set of changes -

First, make client keyring path, mountpoint on host FS and CephFS and
CephFS's name attributes of the object representing the mount
and update all the mount object creation calls accordingly. Also,
rewrite all the mount object creation to use keyword arguments instead
of positional arguments to avoid mistakes, especially since a new
argument was added in this commit.

Second, add remount method to mount.py so that it's possible to unmount
safely, modify the attributes of the object representing the mount and
mount again based on new state of the object *in a single call*. The
method is placed in mount.py to avoid duplication.

This change has two leads to two more changes: upgrading interface of
mount() and mount_wait() and upgrading testsuites to adapt to these
change.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
14 files changed:
qa/tasks/ceph_fuse.py
qa/tasks/cephfs/filesystem.py
qa/tasks/cephfs/fuse_mount.py
qa/tasks/cephfs/kernel_mount.py
qa/tasks/cephfs/mount.py
qa/tasks/cephfs/test_client_recovery.py
qa/tasks/cephfs/test_failover.py
qa/tasks/cephfs/test_quota.py
qa/tasks/cephfs/test_recovery_pool.py
qa/tasks/cephfs/test_sessionmap.py
qa/tasks/cephfs/test_strays.py
qa/tasks/cephfs/test_volume_client.py
qa/tasks/kclient.py
qa/tasks/vstart_runner.py