From: Nathan Cutler Date: Tue, 22 Oct 2019 13:59:12 +0000 (+0200) Subject: qa/tasks/ceph.py: drop block_journal, tmpfs_journal X-Git-Tag: v15.2.1~17^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b4b869710e030985c94668afa7edb3fc07b17ffc;p=ceph.git qa/tasks/ceph.py: drop block_journal, tmpfs_journal I looked, but did not find any tests that actually use these options. Signed-off-by: Nathan Cutler (cherry picked from commit 13933171297da0e35461e0c7420751867a645b5b) --- diff --git a/qa/tasks/ceph.py b/qa/tasks/ceph.py index 338722dc9e838..748400785fc2d 100644 --- a/qa/tasks/ceph.py +++ b/qa/tasks/ceph.py @@ -607,27 +607,7 @@ def cluster(ctx, config): roles_to_devs = assign_devs( teuthology.cluster_roles_of_type(roles_for_host, 'osd', cluster_name), devs ) - if len(roles_to_devs) < len(devs): - devs = devs[len(roles_to_devs):] devs_to_clean[remote] = [] - - if config.get('block_journal'): - log.info('block journal enabled') - roles_to_journals = assign_devs( - teuthology.cluster_roles_of_type(roles_for_host, 'osd', cluster_name), devs - ) - log.info('journal map: %s', roles_to_journals) - - if config.get('tmpfs_journal'): - log.info('tmpfs journal enabled') - roles_to_journals = {} - remote.run(args=['sudo', 'mount', '-t', 'tmpfs', 'tmpfs', '/mnt']) - for role in teuthology.cluster_roles_of_type(roles_for_host, 'osd', cluster_name): - tmpfs = '/mnt/' + role - roles_to_journals[role] = tmpfs - remote.run(args=['truncate', '-s', '1500M', tmpfs]) - log.info('journal map: %s', roles_to_journals) - log.info('dev map: %s' % (str(roles_to_devs),)) remote_to_roles_to_devs[remote] = roles_to_devs remote_to_roles_to_journals[remote] = roles_to_journals @@ -658,9 +638,6 @@ def cluster(ctx, config): conf[section] = {} conf[section][key] = value - if config.get('tmpfs_journal'): - conf['journal dio'] = False - if not hasattr(ctx, 'ceph'): ctx.ceph = {} ctx.ceph[cluster_name] = argparse.Namespace() @@ -1166,14 +1143,6 @@ def cluster(ctx, config): ]) raise e - if config.get('tmpfs_journal'): - log.info('tmpfs journal enabled - unmounting tmpfs at /mnt') - for remote, roles_for_host in osds.remotes.items(): - remote.run( - args=['sudo', 'umount', '-f', '/mnt'], - check_status=False, - ) - if ctx.archive is not None and \ not (ctx.config.get('archive-on-error') and ctx.summary['success']): @@ -1840,8 +1809,6 @@ def task(ctx, config): fs=config.get('fs', 'xfs'), mkfs_options=config.get('mkfs_options', None), mount_options=config.get('mount_options', None), - block_journal=config.get('block_journal', None), - tmpfs_journal=config.get('tmpfs_journal', None), skip_mgr_daemons=config.get('skip_mgr_daemons', False), log_whitelist=config.get('log-whitelist', []), cpu_profile=set(config.get('cpu_profile', []),),