Since pacific already mark multifs enabled as defaut.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
log.info('Setting up CephFS filesystem(s)...')
cephfs_config = config.get('cephfs', {})
fs_configs = cephfs_config.pop('fs', [{'name': 'cephfs'}])
- set_allow_multifs = len(fs_configs) > 1
# wait for standbys to become available (slow due to valgrind, perhaps)
mdsc = MDSCluster(ctx)
temp = deepcopy(cephfs_config)
teuthology.deep_merge(temp, fs_config)
fs = Filesystem(ctx, fs_config=temp, name=name, create=True)
- if set_allow_multifs:
- fs.set_allow_multifs()
- set_allow_multifs = False
fss.append(fs)
yield
"""
That a vanilla standby is preferred over others with mds_join_fs set to another fs.
"""
- # After Octopus is EOL, we can remove this setting:
- self.fs.set_allow_multifs()
fs2 = self.mds_cluster.newfs(name="cephfs2")
status, target = self._verify_init()
active = self.fs.get_active_names(status=status)[0]
standbys = [info['name'] for info in status.get_standbys()]
for mds in standbys:
self.config_set('mds.'+mds, 'mds_join_fs', 'cephfs2')
- # After Octopus is EOL, we can remove this setting:
- self.fs.set_allow_multifs()
fs2 = self.mds_cluster.newfs(name="cephfs2")
for mds in standbys:
self._change_target_state(target, mds, {'join_fscid': fs2.id})
self.run_cluster_cmd(f'auth rm {self.client_name}')
self.fs1 = self.fs
- # After Octopus is EOL, we can remove this setting:
- self.fs1.set_allow_multifs()
self.fs2 = self.mds_cluster.newfs(name='cephfs2', create=True)
# we'll reassign caps to client.1 so that it can operate with cephfs2