]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: allow specifying mountpoint for kernel mounts
authorRishabh Dave <ridave@redhat.com>
Tue, 30 Jul 2019 11:28:02 +0000 (16:58 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 6 Nov 2019 06:06:10 +0000 (11:36 +0530)
Allow specifying the directory in CephFS that should be kernel mounted
at the given path.

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

index f5265b22c488a4ab4f0509a81f8d83d8939028a7..c8d1ec6593f6b653dee5c5436f2023b30688f615 100644 (file)
@@ -28,6 +28,9 @@ class KernelMount(CephFSMount):
         self.ipmi_domain = ipmi_domain
 
     def mount(self, mount_path=None, mount_fs_name=None):
+    def mount(self, mount_path=None, mount_fs_name=None, mountpoint=None):
+        if mountpoint is not None:
+            self.mountpoint = mountpoint
         self.setupfs(name=mount_fs_name)
 
         log.info('Mounting kclient client.{id} at {remote} {mnt}...'.format(
index 23106aa5e6db1494c9f7659d54c29cb2cc9f3dfd..e8f1af8ed4576e67d061a13275ae12a0851a461e 100644 (file)
@@ -58,7 +58,7 @@ class CephFSMount(object):
         self.fs.wait_for_daemons()
         log.info('Ready to start {}...'.format(type(self).__name__))
 
-    def mount(self, mount_path=None, mount_fs_name=None):
+    def mount(self, mount_path=None, mount_fs_name=None, mountpoint=None):
         raise NotImplementedError()
 
     def umount(self):