]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: use lv.encrypted property with lvm zap 20537/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 22 Feb 2018 17:01:10 +0000 (11:01 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 22 Feb 2018 17:01:10 +0000 (11:01 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
src/ceph-volume/ceph_volume/devices/lvm/zap.py

index 279419c2e5377b08cba9cc767e320280729d945c..ee5cdf97b6a590726df2f3c16346f44c8355c14a 100644 (file)
@@ -72,7 +72,7 @@ class Zap(object):
         if lv:
             osd_path = "/var/lib/ceph/osd/{}-{}".format(lv.tags['ceph.cluster_name'], lv.tags['ceph.osd_id'])
             dmcrypt_uuid = lv.lv_uuid
-            dmcrypt = lv.tags.get('ceph.encrypted', '0') == '1'
+            dmcrypt = lv.encrypted
             if system.path_is_mounted(osd_path):
                 mlogger.info("Unmounting %s", osd_path)
                 system.unmount(osd_path)