SD/SDHC storage_test fails (system with eMMC)

Bug #1458462 reported by Erin Chen
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
High
Sylvain Pineau

Bug Description

[Step]
1. Insert MMC/SD/SDHC card
2. Run Media card test

[Expected result]
test should be passed

[Actual result]
Test failed due to 'Not enough space', although there is enough space on the MMC/SD/SDHC card we inserted in step 1.
This system uses an internal eMMC storage partition (probably the recovery partition), plainbox will test all of the mmc partitions.
Attached is testing log and disk information.

Related branches

Revision history for this message
Erin Chen (iamerin-c) wrote :
Revision history for this message
Erin Chen (iamerin-c) wrote :
Changed in plainbox-provider-checkbox:
status: New → Confirmed
Pierre Equoy (pieq)
description: updated
Pierre Equoy (pieq)
tags: added: ce-qa-concern
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Hi.

Could you please attach the output of "lsblk -O"

Revision history for this message
Erin Chen (iamerin-c) wrote :
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
importance: Undecided → High
Revision history for this message
Pierre Equoy (pieq) wrote :

I tested the following on the device where the problem is encountered, with no external drive/memory cards connected to it:

/usr/lib/2013.com.canonical.certification:checkbox/bin$ sudo ./removable_storage_test -l --memorycard sdio usb scsi
--------------------
Removable devices currently mounted:
/dev/mmcblk0p3 : /
/dev/mmcblk0p1 : /boot/efi
Removable devices currently not mounted:
/dev/mmcblk0p2
--------------------

The `removable_storage_test` script sees the internal eMMC drive as a “removable device”.

The attached file is the output of the `udisks2_monitor` script from the same directory.

Changed in plainbox-provider-checkbox:
assignee: nobody → Pierre Equoy (pierre-equoy)
Revision history for this message
Pierre Equoy (pieq) wrote :

Ouput of `udevadm info --export-db`

Revision history for this message
Pierre Equoy (pieq) wrote :

Gabriel had a similar issue with a device that has an eMMC device:

https://bugs.launchpad.net/sutton/+bug/1526709

Bruce Ma did some investigation, here is a copy of his comment in the previously mentioned issue:

-----

This is a script issue. Because the script "removable_storage_test" checked all block device and compare the smallest free space with its request space, then raise the "Not enough space" error.

/boot/efi had 7 MB free space, but the script need 32MB(256MiB) space.

Found the following mounted sdio, usb, scsi partitions:
    /dev/mmcblk0p1 : /media/u/61A5-EF4F : None bits/s
    /dev/sda3 : / : None bits/s
    /dev/sda1 : /boot/efi : None bits/s
    /dev/sda2 : /tmp/tmp0ckjkk9u : None bits/s
    /dev/sda5 : /home : None bits/s

  File "/tmp/nest-bpx861hu.73c62fa7109259fef20f192cf6839a6d562a03cca8d72b58fceebbef99ad4609/removable_storage_test", line 728, in <module>
    sys.exit(main())
  File "/tmp/nest-bpx861hu.73c62fa7109259fef20f192cf6839a6d562a03cca8d72b58fceebbef99ad4609/removable_storage_test", line 563, in main
    raise IOError("Not enough space. {} is required" .format(desired_size))
OSError: Not enough space. 255.97MiB is required

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 19G 4.8G 14G 27% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 3.9G 4.0K 3.9G 1% /dev
tmpfs 786M 1.3M 784M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 3.9G 76K 3.9G 1% /run/shm
none 100M 36K 100M 1% /run/user
/dev/sda5 429G 100M 407G 1% /home
/dev/sda1 18M 11M 7.0M 60% /boot/efi
/dev/mmcblk0p1 1.9G 8.0K 1.9G 1% /media/u/61A5-EF4F
-----

Changed in plainbox-provider-checkbox:
assignee: Pierre Equoy (pierre-equoy) → Sylvain Pineau (sylvain-pineau)
status: Confirmed → In Progress
Changed in plainbox-provider-checkbox:
milestone: none → 0.26
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Pierre Equoy (pieq)
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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