From e0b3f0e78c25798ca8a0ac7cf77e29f5883a48b3 Mon Sep 17 00:00:00 2001 From: Vasu Kulkarni Date: Thu, 15 Mar 2018 18:38:03 -0700 Subject: [PATCH] fast fix for nvme test Signed-off-by: Vasu Kulkarni --- teuthology/task/ceph_ansible.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/teuthology/task/ceph_ansible.py b/teuthology/task/ceph_ansible.py index 65623e5de1..fa0b2ee5d1 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: -- 2.39.5