From: Vasu Kulkarni Date: Fri, 16 Mar 2018 01:38:03 +0000 (-0700) Subject: fast fix for nvme test X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6d0ec8d2866c29c2392a75e57f9429350f6e4d05;p=teuthology.git fast fix for nvme test Signed-off-by: Vasu Kulkarni --- diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 06274429d5..fe8ada671a 100644 --- a/teuthology/task/ceph_ansible.py +++ b/teuthology/task/ceph_ansible.py @@ -327,6 +327,12 @@ class CephAnsible(Task): dev_needed = len([role for role in roles if role.startswith('osd')]) host_vars['devices'] = get_scratch_devices(remote)[0:dev_needed] + # check if the host has nvme device, if so use it as journal + # fix me asap + if extra_vars.get('osd_scenario') == 'non-collocated': + journals = ['/dev/nvme0n1'] + host_vars['dedicated_devices'] = journals + host_vars['devices'] = get_scratch_devices(remote)[0:1] if 'monitor_interface' not in extra_vars: host_vars['monitor_interface'] = remote.interface if 'radosgw_interface' not in extra_vars: