]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-validate: check devices from lvm_volumes
authorDimitri Savineau <dsavinea@redhat.com>
Tue, 15 Dec 2020 19:49:57 +0000 (14:49 -0500)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 26 Jul 2021 15:49:03 +0000 (17:49 +0200)
2888c08 introduced a regression as the check_devices tasks file was
only included based on the devices variable.
But that file also validate some devices from the lvm_volumes variable.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1906022
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit ac0342b72e045b96a31bed23c6baeceeecca7f23)

roles/ceph-validate/tasks/check_devices.yml
roles/ceph-validate/tasks/main.yml

index 5f439ac6a4d469b8cfd4da4e33ff33fd11be693d..930f45431b041c58cc7244b24bca2c70f2ff8594 100644 (file)
@@ -83,7 +83,7 @@
         unit: MiB
       register: devices_parted
       failed_when: False
-      with_items: "{{ devices }}"
+      with_items: "{{ devices | default([]) }}"
 
     - name: fail if one of the devices is not a device
       fail:
index 51c2fac28f728335bb80f3f75dcb3d051a1fd8db..ae989b0fc97fc9bc6b2ba896d2ed468eadca8310 100644 (file)
   when:
     - osd_group_name in group_names
     - not osd_auto_discovery | default(False) | bool
-    - devices|default([])|length > 0
 
 - name: include check_eth_mon.yml
   include_tasks: check_eth_mon.yml