This causes self.cephfs_mntpt to set as "/" by default which
overrides the config in ceph.conf. `test_client_cache_size`
updates ceph.conf with:
client mountpoint = /subdir
However, the ceph-fuse mount command has --client_mountpoint explicitly
set as "/", thereby causing the root of the file system to get mounted which
confuses the test.
Fixes: http://tracker.ceph.com/issues/56446
Introduced-by: bf83eaa4e75516a6937e4097b8708c48856a9473
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit
4322dcc2e94bab80042eaf1e236174f6e6772cec)
self.validate_subvol_options()
- assert(self.cephfs_mntpt)
- mount_cmd += ["--client_mountpoint=" + self.cephfs_mntpt]
+ if self.cephfs_mntpt:
+ mount_cmd += ["--client_mountpoint=" + self.cephfs_mntpt]
if self.cephfs_name:
mount_cmd += ["--client_fs=" + self.cephfs_name]
self.setup_netns()
+ if not self.cephfs_mntpt:
+ self.cephfs_mntpt = '/'
if not self.cephfs_name:
self.cephfs_name = 'cephfs'
subvol_paths = self.ctx.created_subvols[self.cephfs_name]
path_to_mount = subvol_paths[mount_subvol_num]
self.cephfs_mntpt = path_to_mount
- elif not self.cephfs_mntpt:
- # default to the "/" path
- self.cephfs_mntpt = "/"