]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
fast fix for nvme test
authorVasu Kulkarni <vasu@redhat.com>
Fri, 16 Mar 2018 01:38:03 +0000 (18:38 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Thu, 14 Feb 2019 20:28:12 +0000 (12:28 -0800)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/task/ceph_ansible.py

index 65623e5de1284d6e13dc279bc889402c2ffba73d..fa0b2ee5d1ab37faa5a3a198009557de7ea3363c 100644 (file)
@@ -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: