ceph-volume: consider block and data devices used_by_ceph

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
Andrew Schoen 2018-10-02 15:08:10 -05:00
parent 0718d2e266
commit 6751253011

View File

@ -120,7 +120,7 @@ class Device(object):
def used_by_ceph(self):
# only filter out data devices as journals could potentially be reused
osd_ids = [lv.tags.get("ceph.osd_id") for lv in self.lvs
if lv.tags.get("ceph.type") == "data"]
if lv.tags.get("ceph.type") in ["data", "block"]]
return any(osd_ids)