Bug 2414811

Summary: RFE: provide udev rules for OSDs
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Jan Safranek <jsafrane>
Component: Ceph-VolumeAssignee: Guillaume Abrioux <gabrioux>
Status: NEW --- QA Contact: Aditya Ramteke <aramteke>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.1CC: ceph-eng-bugs, cephqe-warriors
Target Milestone: ---Keywords: FutureFeature
Target Release: 9.1   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Safranek 2025-11-13 12:37:25 UTC
Please provide udev rule(s) that create /dev/disk/by-uuid symlink for BlueStores.

When a raw block device is used as an OSD, it's hard to identify which device is which after a reboot. Some platforms don't have good /dev/disk/by-id symlinks (e.g. vSphere VMs) and the UUID symlink could help users to identify which device is which.

This will be especially useful in ODF that is based on local-storage-operator (LSO) volumes. LSO could use by-uuid symlinks to fix frequent customer issues when by-id symlinks are missing or wrong. For example:
https://issues.redhat.com/browse/OCPBUGS-61988
https://issues.redhat.com/browse/OCPBUGS-60033

These bugs are frustrating to users, because their ODF does not work and they escalate. They blame ODF, which then blames OpenShift and we in OpenShift then blame Ceph tooling not providing by-uuid symlinks.

The hardest part would be to extract a small utility that can detect BlueStore disks and extract UUID from them, so it could be eventually included in a small RPM sub-package with a simple udev rule. It needs to be small enough to be included in the RH CoreOS image. ceph-volume is too heavy and brings too many dependencies.

Version-Release number of selected component (if applicable):
OpenShift 4.21 (= Red Hat Enterprise Linux CoreOS 9.6.20251112-0).
The final target would be probably CoreOS based on RHEL 10.

How reproducible:
always

Steps to Reproduce:
1. Install ODF on OpenShift. Use raw block devices for OSDs.

Actual results:
No /dev/disk/by-uuid symlink exists.

Expected results:
/dev/disk/by-uuid/ symlinks appears for the OSD devices.

Additional info: