removable_storage_test detecting non-removable devices as removable

Bug #1875399 reported by Rod Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Expired
Undecided
Unassigned

Bug Description

The removable_storage_test script incorrectly identifies some (but not all) non-removable devices as removable. This happens, for instance, with the OBv3 hardware in 18T:

https://certification.canonical.com/hardware/201908-27304/submission/160695/test-results/

The /dev/sdb device on this system is an internal (non-removable) SSD, which the test identifies as removable. The test passes, so it doesn't jump out as a problem in this specific case, but the test script could conceivably run on the wrong device(s) in other cases. On my own laptop, for instance, when I insert an SD card, the test runs against both the SD card (/dev/mmcblk0p1) and against two partitions on the internal SSD (/dev/sda1 and /dev/sda3).

Revision history for this message
Rod Smith (rodsmith) wrote :

To further complicate matters, I was looking into using the contents of /sys/class/block/{devicename}/removable to filter out non-removable devices, but it doesn't look quite reliable enough. It works correctly to identify removable SD card slots on two machines I've tested (a MacBook Air and a desktop with a PCI-based third-party media-card reader), but on another laptop (a Samsung Notebook 7 Spin), an SD card shows up as being non-removable via this test. I don't know how common this sort of failure is in client devices. On the server side, servers with SD card slots are extremely rare, and we don't happen to have any in-house.

Revision history for this message
Maksim Beliaev (beliaev-maksim) wrote :

Bug was migrated to GitHub: https://github.com/canonical/checkbox/issues/165.
Bug is no more monitored here.

Changed in plainbox-provider-checkbox:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.