From 67512530116c16d072c91867a259aeb429d32ff6 Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Tue, 2 Oct 2018 15:08:10 -0500 Subject: [PATCH] ceph-volume: consider block and data devices used_by_ceph Signed-off-by: Andrew Schoen --- src/ceph-volume/ceph_volume/util/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)