Actions
Bug #46558
closedcephadm: paths attribute ignored for db_devices/wal_devices via OSD spec
Status:
Resolved
Priority:
High
Assignee:
Category:
cephadm/osd
Target version:
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When creating an OSD spec for using dedicated devices for either DB and/or WAL bluestore devices, we can't use the paths drive group attribute [1] because it seems currently ignored but works for data_devices.
# cat osds.yml service_type: osd service_id: foo placement: label: osds data_devices: paths: - /dev/sdc db_devices: paths: - /dev/sdd encrypted: false # cephadm shell -m osds.yml -- ceph orch apply osd -i /mnt/osds.yml INFO:cephadm:Inferring fsid b6dc7042-c6ac-11ea-974b-fa163e8d447e INFO:cephadm:Inferring config /var/lib/ceph/b6dc7042-c6ac-11ea-974b-fa163e8d447e/mon.ofgnapinv-1/config INFO:cephadm:Using recent ceph image docker.io/ceph/daemon-base:latest-master WARNING: The same type, major and minor should not be used for multiple devices. Scheduled osd.foo update...
As a result, there's an OSD created on /dev/sdc only without the bluestore DB on /dev/sdd
# cephadm shell -- ceph-volume lvm list INFO:cephadm:Inferring fsid b6dc7042-c6ac-11ea-974b-fa163e8d447e INFO:cephadm:Inferring config /var/lib/ceph/b6dc7042-c6ac-11ea-974b-fa163e8d447e/mon.ofgnapinv-1/config INFO:cephadm:Using recent ceph image docker.io/ceph/daemon-base:latest-master WARNING: The same type, major and minor should not be used for multiple devices. WARNING: The same type, major and minor should not be used for multiple devices. WARNING: The same type, major and minor should not be used for multiple devices. ====== osd.5 ======= [block] /dev/ceph-bd41b3ba-23a0-4e03-bb1c-5e17f89136a1/osd-block-fde2284b-1f59-48ab-995f-706a3e49c6bf block device /dev/ceph-bd41b3ba-23a0-4e03-bb1c-5e17f89136a1/osd-block-fde2284b-1f59-48ab-995f-706a3e49c6bf block uuid avv5vs-2gZg-how1-kYnq-PAGL-bsfL-qAHg8m cephx lockbox secret cluster fsid b6dc7042-c6ac-11ea-974b-fa163e8d447e cluster name ceph crush device class None encrypted 0 osd fsid fde2284b-1f59-48ab-995f-706a3e49c6bf osd id 5 osdspec affinity foo type block vdo 0 devices /dev/sdc
[1] https://github.com/ceph/ceph/blob/master/src/python-common/ceph/deployment/drive_group.py#L27
Actions