Media card storage test seems to fail on systems with SSD- failed with "Parent and Child copy hashes mismatch" warning message.

Bug #1337270 reported by Gene Li
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Support Library
Fix Released
High
Daniel Manrique

Bug Description

All of the MMC, SD, SDHC card storage tests are failed with same warning.

Parent and Child md5sum result are same when manually copy file.

CID: 201407-15278
SKU: HOU2-E3-C2

mmc: https://certification.canonical.com/hardware/201407-15278/submission/99481/test/49/result/7336068/
sd: https://certification.canonical.com/hardware/201407-15278/submission/99481/test/52/result/7335968/
sdhc: https://certification.canonical.com/hardware/201407-15278/submission/99481/test/55/result/7336016/

===Test failed log===
WARNING:root:[Iteration 0] Parent and Child copy hashes mismatch on /tmp/tmpauu0qgfa/tmp2wh18xyl.0!
WARNING:root: Parent hash: b34cc2862111c38ddf7665a7d9375ef7
WARNING:root: Child hash: 0541048c2631a8849d5ac2fda825130b
WARNING:root:[Iteration 0] Parent and Child copy hashes mismatch on /boot/efi/tmp2wh18xyl.0!
WARNING:root: Parent hash: b34cc2862111c38ddf7665a7d9375ef7
WARNING:root: Child hash: 57eab5577a950c0891a7c856280b299f
WARNING:root:Completed 1 test iterations, but there were errors
Found the following mounted sdio, usb, scsi partitions:
    /dev/sda3 : /tmp/tmpxr3fus1b : None bits/s
    /dev/sda4 : / : None bits/s
    /dev/sda2 : /tmp/tmpauu0qgfa : None bits/s
    /dev/mmcblk0p1 : /media/u/MMC : None bits/s
    /dev/sda1 : /boot/efi : None bits/s
--------------------
/dev/sda3 (Total Data Size / iteration: 64.0124 MB):
 [Iteration 0] Average Speed: 301.9281
 Summary:
  Total Data Attempted: 64.0124 MB
  Total Time to write: 0.2120 secs
  Average Write Time: 0.2120 secs
  Average Write Speed: 301.9281 MB/s
/dev/sda4 (Total Data Size / iteration: 64.0124 MB):
 [Iteration 0] Average Speed: 326.1109
 Summary:
  Total Data Attempted: 64.0124 MB
  Total Time to write: 0.1963 secs
  Average Write Time: 0.1963 secs
  Average Write Speed: 326.1109 MB/s
/dev/sda2 (Total Data Size / iteration: 64.0124 MB):
 [Iteration 0] Average Speed: 587.5243
 Summary:
  Total Data Attempted: 64.0124 MB
  Total Time to write: 0.1090 secs
  Average Write Time: 0.1090 secs
  Average Write Speed: 587.5243 MB/s
/dev/mmcblk0p1 (Total Data Size / iteration: 64.0124 MB):
 [Iteration 0] Average Speed: 1.0947
 Summary:
  Total Data Attempted: 64.0124 MB
  Total Time to write: 58.4728 secs
  Average Write Time: 58.4728 secs
  Average Write Speed: 1.0947 MB/s
/dev/sda1 (Total Data Size / iteration: 64.0124 MB):
 [Iteration 0] Average Speed: 81.4191
 Summary:
  Total Data Attempted: 64.0124 MB
  Total Time to write: 0.7862 secs
  Average Write Time: 0.7862 secs
  Average Write Speed: 81.4191 MB/s

Related branches

Revision history for this message
Daniel Manrique (roadmr) wrote :

The command used to run these tests is:

removable_storage_test -s 268400000 --memorycard sdio usb scsi

The only difference for mmc is that the size is 67120000 instead.

Interestingly, the reported failures seem to be on drives that are NOT the required memory card, notice how the memory card test is failing on /boot/uefi and on /tmp/something-something. My theory is that it's mistakenly identifying the main disk as memory card and trying to test all the partitions on them, this most likely fails because /boot/uefi and /tmp may have smaller sizes.

I was able to reproduce this same behavior on my laptop; the common factor is that they are both Dell machines and they both have a "LITEONIT" mSATA SSD drive. Your system has LITEONIT LMT-256M6M-41 mSATA 256GB SED, mine has LITEONIT LMT-256M6M mSATA 256GB, DM8110F.

I'm definitely marking this as confirmed and critical because it would make all memory card tests fail on systems with SSD units, I'll also perform a control on another non-SSD system to validate this theory.

summary: - Media card storage test failed with "Parent and Child copy hashes
- mismatch" warning message.
+ Media card storage test seems to fail on systems with SSD- failed with
+ "Parent and Child copy hashes mismatch" warning message.
Changed in plainbox:
status: New → Confirmed
importance: Undecided → Critical
affects: plainbox → plainbox-provider-checkbox
Revision history for this message
Daniel Manrique (roadmr) wrote :

Downgrading to High, since this will only affect systems with an SSD drive whose model name includes 'MS' anywhere (like "mSATA"). Actually it would affect any drive containing "MS" in the model name, but SSD drives are the most likely victims.

The problem is in the checkbox_support.heuristics.udisks2 module, the is_memory_card function has this heuristic:

    # Treat any device that match model name to the following regular
    # expression as a memory card reader.
    if CARD_READER_RE.search(model):
        return True

CARD_READER_RE is: ('SD|MMC|CF|MS|SM|xD|Card', re.IGNORECASE)

so clearly the model names "LITEONIT LMT-256M6M-41 mSATA 256GB SED" do match the expression, and the device is considered a memory card, resulting in all its partitions being tested (and some of them failing for various reasons).

I'll fix the heuristic to weed out mSATA disks.

Changed in plainbox-provider-checkbox:
importance: Critical → High
assignee: nobody → Daniel Manrique (roadmr)
status: Confirmed → In Progress
affects: plainbox-provider-checkbox → checkbox-support
Changed in checkbox-support:
status: In Progress → Fix Committed
milestone: none → 0.5
Changed in checkbox-support:
status: Fix Committed → Fix Released
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.