From a9c23005455a57f2fe1e5356a6ab24f47f1eaa2f Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Fri, 24 Jan 2020 11:50:34 -0500 Subject: [PATCH] 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 --- infrastructure-playbooks/filestore-to-bluestore.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/infrastructure-playbooks/filestore-to-bluestore.yml b/infrastructure-playbooks/filestore-to-bluestore.yml index 4a435702e..b1b308019 100644 --- a/infrastructure-playbooks/filestore-to-bluestore.yml +++ b/infrastructure-playbooks/filestore-to-bluestore.yml @@ -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