eSATA / Thunderbolt storage test will be performed on unwanted drives

Bug #1445419 reported by Po-Hsu Lin
6
This bug affects 1 person
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/ubuntu/macally : None bits/s
--------------------
/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:
                Total Data Attempted: 255.9662 MB
                Total Time to write: 1.4539 secs
                Average Write Time: 1.4539 secs
                Average Write Speed: 176.0535 MB/s
/dev/sda1 (Total Data Size / iteration: 255.9662 MB):
ERROR:root:Unable to open /boot/efi/tmpw434dziy.0 for writing.
ERROR:root: [Errno 13] Permission denied: '/boot/efi/tmpw434dziy.0'
ERROR:root:Failed to copy /tmp/tmpw434dziy to /boot/efi/tmpw434dziy.0
ERROR:root:Unable to remove tempfile /boot/efi/tmpw434dziy.0
ERROR:root: [Errno 13] Permission denied: '/boot/efi/tmpw434dziy.0'
        [Iteration 0] Average Speed: 0.0000
        Summary:
                Total Data Attempted: 255.9662 MB
                Total Time to write: 0.0000 secs
                Average Write Time: 0.0000 secs
                Average Write Speed: 0.0000 MB/s
/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:
                Total Data Attempted: 255.9662 MB
                Total Time to write: 0.0000 secs
                Average Write Time: 0.0000 secs
                Average Write Speed: 0.0000 MB/s

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
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I've recently changed the removable_storage_test to avoid considering the device containing the '/' mountpoint as "removable".
See https://bugs.launchpad.net/plainbox-provider-checkbox/+bug/1536989.

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?

Changed in plainbox-provider-checkbox:
status: New → Incomplete
importance: Undecided → Medium
assignee: nobody → Po-Hsu Lin (cypressyew)
Changed in plainbox-provider-checkbox:
status: Incomplete → Fix Released
assignee: Po-Hsu Lin (cypressyew) → nobody
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.