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: v13.2.3~95^2~15 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ac9d130f3986c71d7df85ba13ee0a2067a47b6d;p=ceph.git ceph-volume: consider block and data devices used_by_ceph Signed-off-by: Andrew Schoen (cherry picked from commit 67512530116c16d072c91867a259aeb429d32ff6) --- diff --git a/src/ceph-volume/ceph_volume/util/device.py b/src/ceph-volume/ceph_volume/util/device.py index 6e355fc4a648..8c0ee1791f4d 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)