CIM_DiskDrive should be used only for physical disks, like ATA or SCSI. HW provider shows CIM_DiskDrive also from iSCSI drives, which are purely virtual.
Simple lsblk won't help here. Current blivet uses something like this:
# info is dictionary with udev attributes
path_components = info["ID_PATH"].split("-")
if info["ID_BUS"] == "scsi" and path_components == "ip" and path_components == "iscsi":
# the device is iscsi
There is similar heuristics for FCoE.
lsblk provides TRAN attribute - device transport type; it looks like it could be used to detect iscsi, what do you think?
$ lsblk -dPpo NAME,TYPE,MODEL,TRAN
NAME="/dev/sda" TYPE="disk" MODEL="HGST HTS725050A7" TRAN="sata"
NAME="/dev/sdb" TYPE="disk" MODEL="S1 Mini " TRAN="usb"
NAME="/dev/sdc" TYPE="disk" MODEL="VIRTUAL-DISK " TRAN="iscsi"
NAME="/dev/sr0" TYPE="rom" MODEL="DVD-RW DS8A8SH " TRAN="sata"
(In reply to Peter Schiffer from comment #1)
> NAME="/dev/sdc" TYPE="disk" MODEL="VIRTUAL-DISK " TRAN="iscsi"
That looks promising.
RB review: https://reviewboard-openlmi.rhcloud.com/r/2002/
Patch was pushed to upstream, will be available in next release of openlmi-providers in F21.
openlmi-storage-0.8.0-1.fc21, openlmi-networking-0.3.0-1.fc21, openlmi-providers-0.5.0-4.fc21 has been submitted as an update for Fedora 21.
Package openlmi-storage-0.8.0-1.fc21, openlmi-networking-0.3.0-1.fc21, openlmi-providers-0.5.0-5.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openlmi-storage-0.8.0-1.fc21 openlmi-networking-0.3.0-1.fc21 openlmi-providers-0.5.0-5.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
openlmi-storage-0.8.0-1.fc21, openlmi-networking-0.3.0-1.fc21, openlmi-providers-0.5.0-5.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.