udev resource job does not list virtio drives as Block devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Support Library |
Fix Released
|
Medium
|
Daniel Manrique | ||
HEXR |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This is the second bug, the first involves a bad requires: statement in the disk/stats job, apparently.
THIS bug relates to disk tests not being runnable at all.
I noticed the following on the console while trying to run C-C-S from the packages in the testing ppa:
ii checkbox-ng 0.8~c3~
ii plainbox-
ii python3-checkbox-ng 0.8~c3~
ii python3-
ii plainbox-
ii plainbox-
ii plainbox-
ii plainbox-
ii python3-plainbox 0.10~c1~
-------
ID: 2013.com.
(Command output hidden)
ERROR plainbox.ctrl: Ignoring invalid generated job 2013.com.
Outcome: job passed
-------
ID: 2013.com.
Job cannot be started because:
- resource expression "device.category == 'DISK'" evaluates to false
Outcome: job cannot be started
------[ Verify system storage performs at or above baseline performance ]-------
ID: 2013.com.
Job cannot be started because:
- resource expression "device.category == 'DISK'" evaluates to false
Outcome: job cannot be started
-------
ID: 2013.com.
Job cannot be started because:
- resource expression "device.category == 'DISK'" evaluates to false
Outcome: job cannot be started
[ Verify that storage devices, such as Fibre Channel and RAID can be detected and perform under stress. ]
ID: 2013.com.
Job cannot be started because:
- resource expression "device.category == 'DISK'" evaluates to false
Outcome: job cannot be started
After running udev_resource, it appears that there are NO devices listed as DISK.
This is on a qemu (KVM) cloud instance and has a virtio device /dev/vda:
lrwxrwxrwx 1 root root 0 Aug 11 12:07 vda -> ../devices/
And this is what udev_resource says:
path: /devices/
bus: pci
category: SCSI
driver: virtio-pci
product_id: 4097
vendor_id: 6900
subproduct_id: 2
subvendor_id: 6900
product: Virtio block device
vendor: Red Hat, Inc
so device.category is being set to SCSI rather than DISK, and thus the disk tests are not runnable.
Related branches
- Zygmunt Krynicki (community): Approve
-
Diff: 2492 lines (+2459/-0)3 files modifiedcheckbox-support/checkbox_support/parsers/tests/test_udevadm.py (+23/-0)
checkbox-support/checkbox_support/parsers/tests/udevadm_data/QEMU_KVM.txt (+2426/-0)
checkbox-support/checkbox_support/parsers/udevadm.py (+10/-0)
affects: | checkbox → plainbox-provider-resource |
Changed in checkbox-support: | |
milestone: | future → 0.9 |
Changed in checkbox-support: | |
status: | In Progress → Fix Committed |
Changed in checkbox-support: | |
status: | Fix Committed → Fix Released |
Changed in hexr: | |
status: | Fix Committed → Fix Released |
I'll move this to checkbox-support, as it looks like a udev parser bug.
Also, Jeff, could you please attach udevadm info --export-db output to this bug? This will help add that machine's data to our test suite to ensure we don't have regressions in the future.
Thanks!