]> 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>
Wed, 19 Sep 2018 19:37:02 +0000 (12:37 -0700)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
teuthology/task/ceph_ansible.py

index 06274429d5a255c72f35ab082916c5a25eaea93c..fe8ada671ab932fad41f19f1d2f3739f10516d2f 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: