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>
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