virtual network devices ignored by udev_resource on powerpc (and possibly other platforms)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Support Library |
Fix Released
|
High
|
Daniel Manrique |
Bug Description
an IBM pSeries PowerPC system has a network device that shows in udev:
P: /devices/
E: DEVPATH=
E: DRIVER=ibmveth
E: MODALIAS=
E: OF_COMPATIBLE_
E: OF_COMPATIBLE_N=1
E: OF_FULLNAME=
E: OF_NAME=l-lan
E: OF_TYPE=network
E: SUBSYSTEM=vio
P: /devices/
E: DEVPATH=
E: ID_NET_
E: IFINDEX=2
E: INTERFACE=eth0
E: MATCHDEVID=0x0
E: MATCHIFTYPE=1
E: SUBSYSTEM=net
E: USEC_INITIALIZE
This is a virtual device, and as such, the first device seen here has no PCI vendor or product ID or name. This causes our udev parser to ignore the device. However, it's a perfectly valid eth0 device that needs testing.
The device's environment contains a ID_NET_NAME_MAC variable that in conjunction with bus == "net" should be able to identify this as a valid network interface that needs testing; that should appear as a NETWORK device stanza in udev_resource output.
Here's the udev_resource output on the pSeries:
path: /devices/
bus: scsi
category: DISK
driver: sd
product: QEMU HARDDISK
vendor: QEMU
path: /devices/
bus: scsi
category: DISK
driver: sd
product: QEMU HARDDISK
vendor: QEMU
path: /devices/
bus: scsi
category: CDROM
driver: sr
product: QEMU CD-ROM
vendor: QEMU
There is no NETWORK device, we'd want something like this (cheating because I already have a prototype fix where I got this from):
path: /devices/
bus: net
category: NETWORK
driver: ibmveth
interface: eth0
path: /devices/
bus: scsi
category: DISK
driver: sd
product: QEMU HARDDISK
vendor: QEMU
path: /devices/
bus: scsi
category: DISK
driver: sd
product: QEMU HARDDISK
vendor: QEMU
path: /devices/
bus: scsi
category: CDROM
driver: sr
product: QEMU CD-ROM
vendor: QEMU
Related branches
- Zygmunt Krynicki (community): Approve
-
Diff: 4209 lines (+4175/-1)3 files modifiedcheckbox-support/checkbox_support/parsers/tests/test_udevadm.py (+22/-0)
checkbox-support/checkbox_support/parsers/tests/udevadm_data/IBM_PSERIES_POWER7.txt (+4147/-0)
checkbox-support/checkbox_support/parsers/udevadm.py (+6/-1)
Changed in checkbox-support: | |
status: | In Progress → Fix Committed |
milestone: | none → 0.3 |
Changed in checkbox-support: | |
status: | Fix Committed → Fix Released |