]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: consider block and data devices used_by_ceph
authorAndrew Schoen <aschoen@redhat.com>
Tue, 2 Oct 2018 20:08:10 +0000 (15:08 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 15 Oct 2018 16:55:50 +0000 (11:55 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 67512530116c16d072c91867a259aeb429d32ff6)

src/ceph-volume/ceph_volume/util/device.py

index 6e355fc4a648feee73c65ea85a214ed6cdf71e1e..8c0ee1791f4d4e3dbd1953b154dd375722d07065 100644 (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)