[usb3/storage-automated] test.rem_disks_xhci[disk]: KeyError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Critical
|
Taihsiang Ho |
Bug Description
plainbox-
this is being found on particular desktop systems(about 3 so far)
the issue can be reproduce on those systems with any usb3 flash drivers with following commands
$ ./usr/lib/
Output:
Found the following mounted usb partitions:
/dev/sdb1 : /media/u/C936-1EB6 : 5000000000 bits/s
-------
/dev/sdb1 (Total Data Size / iteration: 255.9662 MB):
[Iteration 0] Average Speed: 5.5610
Summary:
Total Data Attempted: 255.9662 MB
Total Time to write: 46.0287 secs
Average Write Time: 46.0287 secs
Average Write Speed: 5.5610 MB/s
Traceback (most recent call last):
File "./removable_
sys.
File "./removable_
'xhci' == test.rem_
KeyError: '/dev/sdb1'
the same usb drive, [125f:c13a], does not received this error on other desktops or laptops.
Related branches
- Zygmunt Krynicki (community): Approve
-
Diff: 39 lines (+20/-2)1 file modifiedproviders/plainbox-provider-checkbox/bin/removable_storage_test (+20/-2)
description: | updated |
Changed in plainbox-provider-checkbox: | |
milestone: | 0.6 → 0.7 |
Changed in plainbox-provider-checkbox: | |
milestone: | 0.7 → 0.8 |
Changed in plainbox-provider-checkbox: | |
status: | Confirmed → In Progress |
Changed in plainbox-provider-checkbox: | |
status: | In Progress → Fix Committed |
Changed in plainbox-provider-checkbox: | |
status: | Fix Committed → Fix Released |
OK, a simplistic solution would be to change 'xhci' == test.rem_ disks_xhci[ disk] to 'xhci' == test.rem_ disks_xhci. get(disk, "") to guarantee we get a comparable value all the time. However, there seems to be a deeper problem here, where the script is not considering /dev/sdb1 as having the xhci driver. I checked the attached udev file and it *is* using the xhci_hcd driver, so the logic is somewhow getting things wrong.
I'd prefer Tai to look at this, since he wrote the code, so I'll assign the bug to him, I can look into this next week if there haven't been any changes by then.