]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: skip virtual cdrom devices in inventory 67624/head
authorUjjawal Anand <ujjawal.anand@ibm.com>
Tue, 3 Mar 2026 05:38:29 +0000 (11:08 +0530)
committerUjjawal Anand <ujjawal.anand@ibm.com>
Wed, 25 Mar 2026 15:49:02 +0000 (21:19 +0530)
commit3706288bc050bb20d64fc9ac6a643aaf84ca041d
tree516d2c8219c58e2661b032926eb9c210b0c16f1a
parent2f20123931e751866158fa913c5851bc2686ab9e
ceph-volume: skip virtual cdrom devices in inventory
-Some hosts expose IPMI/BMC virtual media as /dev/sr0. These
devices are reported as SCSI type 5 (CD/DVD) via sysfs and
appear in inventory/orchestrator output.

-These are not real disks and cannot be used as OSD targets.

-Filter out devices with SCSI type 5 to avoid listing
virtual cdrom devices as valid OSD candidates.

Fixes:https://tracker.ceph.com/issues/75281

Signed-off-by: Ujjawal Anand <ujjawal.anand@ibm.com>
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/disk.py