From: David Galloway Date: Tue, 24 Apr 2018 19:28:42 +0000 (-0400) Subject: testnode: Exclude dm devices from list of physical volumes X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F396%2Fhead;p=ceph-cm-ansible.git testnode: Exclude dm devices from list of physical volumes This was actually happening because when the playbook first runs, the setup module is run and sees the device mapper devices. We zap them later in the playbook but ansible doesn't know that. We could just re-run the setup module but this method will instead guarantee we don't use dm-* devices. Fixes: https://tracker.ceph.com/issues/23845 Signed-off-by: David Galloway --- diff --git a/roles/testnode/tasks/configure_lvm.yml b/roles/testnode/tasks/configure_lvm.yml index e61719d1..773cce1f 100644 --- a/roles/testnode/tasks/configure_lvm.yml +++ b/roles/testnode/tasks/configure_lvm.yml @@ -9,7 +9,7 @@ - name: Combine list of non-root disks set_fact: - disks_for_vg: "{{ ansible_devices.keys() | sort | reject('match',root_disk) | reject('match','loop') | reject('match','ram') | map('regex_replace','^','/dev/') | join(',') }}" + disks_for_vg: "{{ ansible_devices.keys() | sort | reject('match',root_disk) | reject('match','loop') | reject('match','ram') | reject('match','dm-') | map('regex_replace','^','/dev/') | join(',') }}" when: quick_lvs_to_create is defined - set_fact: vg_name=vg_hdd