eSATA / Thunderbolt storage test will be performed on unwanted drives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Provider - Base |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The eSATA / Thunderbolt storage will try to run the test on all the available partitions it found,
if it's tested with root privilege, it might pass as it can access the "/" partition
Case A: tested with root privilege
Found the following mounted ata_serial_esata partitions:
/dev/sda1 : / : None bits/s
/dev/sdb1 : /media/
-------
/dev/sda1 (Total Data Size / iteration: 255.9662 MB):
[Iteration 0] Average Speed: 83.1120
Summary:
Total Data Attempted: 255.9662 MB
Total Time to write: 3.0798 secs
Average Write Time: 3.0798 secs
Average Write Speed: 83.1120 MB/s
/dev/sdb1 (Total Data Size / iteration: 255.9662 MB):
[Iteration 0] Average Speed: 51.5750
Summary:
Total Data Attempted: 255.9662 MB
Total Time to write: 4.9630 secs
Average Write Time: 4.9630 secs
Average Write Speed: 51.5750 MB/s
The result is PASS in this case, as it can access both the internal and external HDD.
Case B: tested without root privilege:
Found the following mounted scsi partitions:
/dev/sdc1 : /media/u/CertTB : None bits/s
/dev/sda1 : /boot/efi : None bits/s
/dev/sda2 : / : None bits/s
-------
/dev/sdc1 (Total Data Size / iteration: 255.9662 MB):
[Iteration 0] Average Speed: 176.0535
Summary:
/dev/sda1 (Total Data Size / iteration: 255.9662 MB):
ERROR:root:Unable to open /boot/efi/
ERROR:root: [Errno 13] Permission denied: '/boot/
ERROR:root:Failed to copy /tmp/tmpw434dziy to /boot/efi/
ERROR:root:Unable to remove tempfile /boot/efi/
ERROR:root: [Errno 13] Permission denied: '/boot/
[Iteration 0] Average Speed: 0.0000
Summary:
/dev/sda2 (Total Data Size / iteration: 255.9662 MB):
ERROR:root:Unable to open /tmpw434dziy.0 for writing.
ERROR:root: [Errno 13] Permission denied: '/tmpw434dziy.0'
ERROR:root:Failed to copy /tmp/tmpw434dziy to /tmpw434dziy.0
ERROR:root:Unable to remove tempfile /tmpw434dziy.0
ERROR:root: [Errno 2] No such file or directory: '/tmpw434dziy.0'
[Iteration 0] Average Speed: 0.0000
Summary:
The result of this test case is FAIL
Note that running as root is not 100% reliable, as some of the partition size could be too small for testing.
Also note that the Firewire storage test was not affected by this, the storage test will be tested on the external HDD directly.
summary: |
- eSATA / Thunerbolt storage test will be performed on unwanted drives + eSATA / Thunderbolt storage test will be performed on unwanted drives |
Changed in plainbox-provider-checkbox: | |
status: | Incomplete → Fix Released |
assignee: | Po-Hsu Lin (cypressyew) → nobody |
I've recently changed the removable_ storage_ test to avoid considering the device containing the '/' mountpoint as "removable". /bugs.launchpad .net/plainbox- provider- checkbox/ +bug/1536989.
See https:/
I'd double check with eSATA / Thunderbolt devices to be 100% sure it works but we should not run tests on internal drives now.
Sam, could you confirm?