]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
osds: allow passing devices by path
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 10 Apr 2019 15:16:21 +0000 (17:16 +0200)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 10 Apr 2019 17:22:30 +0000 (13:22 -0400)
ceph-volume didn't work when the devices where passed by path.
Since it now support it, let's allow this feature in ceph-ansible

Closes: #3812
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-facts/tasks/facts.yml
tests/functional/lvm-batch/container/group_vars/all
tests/functional/lvm-batch/group_vars/all

index 96cf69f1cc0b5c4288c4e3ce14f4a5389affd56e..ca1470064e278f915d811f75f49a53ca53828729 100644 (file)
     - devices is defined
     - inventory_hostname in groups.get(osd_group_name, [])
     - not osd_auto_discovery|default(False)
-    - osd_scenario|default('dummy') != 'lvm'
 
 - name: set_fact build devices from resolved symlinks
   set_fact:
     - devices is defined
     - inventory_hostname in groups.get(osd_group_name, [])
     - not osd_auto_discovery|default(False)
-    - osd_scenario|default('dummy') != 'lvm'
 
 - name: set_fact build final devices list
   set_fact:
     - devices is defined
     - inventory_hostname in groups.get(osd_group_name, [])
     - not osd_auto_discovery|default(False)
-    - osd_scenario|default('dummy') != 'lvm'
 
 - name: set_fact devices generate device list when osd_auto_discovery
   set_fact:
index ddf9306d3686b7de1bb9f08e586972e5b6a47fc6..81b853c45f403eaa61d7768a49f7fc64c1824af4 100644 (file)
@@ -19,7 +19,7 @@ osd_scenario: lvm
 copy_admin_key: true
 devices:
   - /dev/sdb
-  - /dev/sdc
+  - /dev/disk/by-id/ata-QEMU_HARDDISK_QM00003
 os_tuning_params:
   - { name: fs.file-max, value: 26234859 }
 ceph_conf_overrides:
index b3126b13c992a87a1cd2ecc3a3d0d59f3de805c6..cde0eaa22b0809b68e646a399a843ff7051b2a66 100644 (file)
@@ -12,7 +12,7 @@ crush_device_class: test
 osd_scenario: lvm
 copy_admin_key: true
 devices:
-  - /dev/sdb 
+  - /dev/disk/by-id/ata-QEMU_HARDDISK_QM00002
   - /dev/sdc
 os_tuning_params:
   - { name: fs.file-max, value: 26234859 }