Merge "Validate output of list_logical_volumes"

This commit is contained in:
Zuul 2019-05-16 14:58:46 +00:00 committed by Gerrit Code Review
commit bc018ee858
1 changed files with 4 additions and 1 deletions

View File

@ -1702,7 +1702,10 @@ def is_active_bluestore_device(dev):
return False
vg_name = lvm.list_lvm_volume_group(dev)
try:
lv_name = lvm.list_logical_volumes('vg_name={}'.format(vg_name))[0]
except IndexError:
return False
block_symlinks = glob.glob('/var/lib/ceph/osd/ceph-*/block')
for block_candidate in block_symlinks: