filestore-to-bluestore: don't fail when with no PV

When the PV is already removed from the devices then we should not fail
to avoid errors like:

stderr: No PV found on device /dev/sdb.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1729267

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit a9c2300545)
pull/4994/head
Dimitri Savineau 2020-01-24 11:50:34 -05:00 committed by Dimitri Savineau
parent 9fb69e13ed
commit 0a2927ce5e
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@
- name: ensure all pv are removed - name: ensure all pv are removed
command: "pvremove --yes {{ item.devices[0] }}" command: "pvremove --yes {{ item.devices[0] }}"
with_items: "{{ _lvm_list }}" with_items: "{{ _lvm_list }}"
failed_when: false
when: when:
- item.type == 'data' - item.type == 'data'
- item.lv_name.startswith('osd-data-') | bool - item.lv_name.startswith('osd-data-') | bool