]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: exclude `nofallback` mount option when using v1-style syntax 44220/head
authorVenky Shankar <vshankar@redhat.com>
Mon, 6 Dec 2021 05:17:26 +0000 (00:17 -0500)
committerVenky Shankar <vshankar@redhat.com>
Thu, 9 Dec 2021 08:00:22 +0000 (13:30 +0530)
Otherwise, certain upgrade tests fail which install pacific
or earlier releases since the mount helper does not understand
this mount option, thereby passing it to the kernel which would
does not handle this config causing mount to fail in tests.

Note that this mount config is only used during teuthology tests
to catch v2-style syntax implementation bugs in the kernel.

Fixes: http://tracker.ceph.com/issues/53487
Signed-off-by: Venky Shankar <vshankar@redhat.com>
qa/tasks/cephfs/kernel_mount.py

index 99ed318ff6c1693a24d9349bb53fdb549a6b3e0d..9eef819633d1f6e34872abecd64120be81229b53 100644 (file)
@@ -116,8 +116,11 @@ class KernelMount(CephFSMount):
             opts += ',' + ','.join(mntopts)
         log.info(f'mounting using device: {stx_opt[0]}')
         # do not fall-back to old-style mount (catch new-style
-        # mount syntax bugs in the kernel).
-        opts += ",nofallback"
+        # mount syntax bugs in the kernel). exclude this config
+        # when using v1-style syntax, since old mount helpers
+        # (pre-quincy) would pass this option to the kernel.
+        if self.syntax_style != 'v1':
+            opts += ",nofallback"
         mount_cmd += self._mount_bin + [stx_opt[0], self.hostfs_mntpt, '-v',
                                         '-o', opts]
         return mount_cmd