From: Andrew Schoen Date: Tue, 2 Oct 2018 20:08:10 +0000 (-0500) Subject: ceph-volume: consider block and data devices used_by_ceph X-Git-Tag: v14.0.1~78^2~15 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=67512530116c16d072c91867a259aeb429d32ff6;p=ceph-ci.git ceph-volume: consider block and data devices used_by_ceph Signed-off-by: Andrew Schoen --- diff --git a/src/ceph-volume/ceph_volume/util/device.py b/src/ceph-volume/ceph_volume/util/device.py index 6e355fc4a64..8c0ee1791f4 100644 --- a/src/ceph-volume/ceph_volume/util/device.py +++ b/src/ceph-volume/ceph_volume/util/device.py @@ -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)