From b963024822e184bc2df1ae7e0bb22898cb46fccf Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 24 Apr 2018 15:28:42 -0400 Subject: [PATCH] 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 --- roles/testnode/tasks/configure_lvm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/testnode/tasks/configure_lvm.yml b/roles/testnode/tasks/configure_lvm.yml index e61719d..773cce1 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 -- 2.39.5