mirror of https://github.com/ceph/ceph-ansible.git
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
parent
0961ab8e60
commit
a9c2300545
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue