if not device_uuid:
return None
- device_lv = lvs.get(lv_uuid=device_uuid)
+ device_lv = lvs.get(lv_tags={'ceph.type': device_type})
if device_lv:
if is_encrypted:
encryption_utils.luks_open(dmcrypt_secret, device_lv.lv_path, device_uuid)
elif osd_fsid and not osd_id:
lvs.filter(lv_tags={'ceph.osd_fsid': osd_fsid})
if not lvs:
- raise RuntimeError('could not find osd.%s with fsid %s' % (osd_id, osd_fsid))
+ raise RuntimeError('could not find osd.%s with osd_fsid %s' % (osd_id, osd_fsid))
# This argument is only available when passed in directly or via
# systemd, not when ``create`` is being used
if getattr(args, 'auto_detect_objectstore', False):