]> 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)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Thu, 11 Apr 2019 02:25:15 +0000 (02:25 +0000)
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>
(cherry picked from commit 7e0adca7a45fe841e40eed774a15a6cc97e638e4)

roles/ceph-facts/tasks/facts.yml
tests/functional/lvm-batch/container/group_vars/all
tests/functional/lvm-batch/group_vars/all

index b55c2d314cd434277fcd7acd68433696cceb1eae..4caed5c1d79e7715be030346732b872f497a9d8e 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 }