]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: skip virtual cdrom devices in inventory 68108/head
authorUjjawal Anand <ujjawal.anand@ibm.com>
Tue, 3 Mar 2026 05:38:29 +0000 (11:08 +0530)
committerGuillaume Abrioux <gabrioux@ibm.com>
Mon, 30 Mar 2026 13:56:47 +0000 (13:56 +0000)
commit1a1cdea3c8fe37efe90f5eec5cb84579d50fcac6
tree35d9d182189b40c821cce7f7d06e20e6afb65297
parent5bb3278730741031382ca9c3dc9d221a942e06a2
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>
(cherry picked from commit 3706288bc050bb20d64fc9ac6a643aaf84ca041d)
src/ceph-volume/ceph_volume/tests/util/test_disk.py
src/ceph-volume/ceph_volume/util/disk.py