Merge pull request #56882 from guits/cv-65477

ceph-volume: create LVs when using partitions
This commit is contained in:
Guillaume Abrioux 2024-05-15 10:36:58 +02:00 committed by GitHub
commit 4a592ad7fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -249,8 +249,8 @@ class LvmBlueStore(BlueStore):
tags['ceph.%s_uuid' % device_type] = lv_uuid
tags['ceph.%s_device' % device_type] = path
lv.set_tags(tags)
elif disk.is_device(device_name):
# We got a disk, create an lv
elif disk.is_partition(device_name) or disk.is_device(device_name):
# We got a disk or a partition, create an lv
lv_type = "osd-{}".format(device_type)
name_uuid = system.generate_uuid()
kwargs = {