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>
pull/4984/head
Dimitri Savineau 2020-01-24 11:50:34 -05:00 committed by Guillaume Abrioux
parent 0961ab8e60
commit a9c2300545
1 changed files with 1 additions and 0 deletions

View File

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