]> git.apps.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)
committerVicente Cheng <freeze.bilsted@gmail.com>
Fri, 3 Jul 2020 08:54:38 +0000 (08:54 +0000)
Allow specifying the directory in CephFS that should be kernel mounted
at the given path.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit b7005a2ac2dacb7eb7b8116ca86068be82cc3807)

qa/tasks/cephfs/kernel_mount.py
qa/tasks/cephfs/mount.py

index 3df4bdec5260e5f5d3be606482c0df87dcc61643..bc3e2bb6a352e79dda3f1a60dfa8bd42d246a97b 100644 (file)
@@ -27,6 +27,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 0d925338f23f21ac524a67f539fbb262269e5b27..ec106680ba1945109321de236b7fcfb58b9df8be 100644 (file)
@@ -60,7 +60,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):