USB/insert test fail

Bug #978925 reported by Shuichi Chiba
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Low
Jeff Lane 
checkbox (Ubuntu)
Fix Released
Low
Jeff Lane 

Bug Description

I have started System testing to complete all the test, however I encountered test failiure during usb/insert test. Macbook air 4.1 with up-to-date Ubuntu 12.04 beta2.

Description: Ubuntu precise (development branch)
Release: 12.04
version: checkbox-qt 0.13.6

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-22-generic 3.2.0-22.35
ProcVersionSignature: Ubuntu 3.2.0-22.35-generic 3.2.14
Uname: Linux 3.2.0-22-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu1
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: Cirrus Analog [Cirrus Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: sencing 1983 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xa0600000 irq 48'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10134206,106b6200,00100302 HDA:80862805,80860101,00100000'
   Controls : 29
   Simple ctrls : 9
CheckboxCommand: removable_storage_watcher insert usb
CheckboxData: 10 seconds have expired waiting for the device to be inserted.
CheckboxTest: usb/insert
Date: Wed Apr 11 22:25:13 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
MachineType: Apple Inc. MacBookAir4,1
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-22-generic root=UUID=c6e59ace-4265-4bc7-90bc-f9348ad6df80 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-22-generic N/A
 linux-backports-modules-3.2.0-22-generic N/A
 linux-firmware 1.78
SourcePackage: linux
StagingDrivers: mei
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 06/30/2011
dmi.bios.vendor: Apple Inc.
dmi.bios.version: MBA41.88Z.0077.B00.1106300929
dmi.board.asset.tag: Base Board Asset Tag#
dmi.board.name: Mac-C08A6BB70A942AC2
dmi.board.vendor: Apple Inc.
dmi.board.version: MacBookAir4,1
dmi.chassis.type: 10
dmi.chassis.vendor: Apple Inc.
dmi.chassis.version: Mac-C08A6BB70A942AC2
dmi.modalias: dmi:bvnAppleInc.:bvrMBA41.88Z.0077.B00.1106300929:bd06/30/2011:svnAppleInc.:pnMacBookAir4,1:pvr1.0:rvnAppleInc.:rnMac-C08A6BB70A942AC2:rvrMacBookAir4,1:cvnAppleInc.:ct10:cvrMac-C08A6BB70A942AC2:
dmi.product.name: MacBookAir4,1
dmi.product.version: 1.0
dmi.sys.vendor: Apple Inc.

Related branches

Revision history for this message
Shuichi Chiba (sencing-investigador) wrote :
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

When you insert the USB key does the drive get mounted and the USB icon appear on the launcher?

Revision history for this message
Shuichi Chiba (sencing-investigador) wrote : Re: [Bug 978925] Re: USB/insert test fail
Download full text (3.5 KiB)

Hi.

When I inserted pendrive, mounting was succeeded. Nautilus came up and
I could see the contents of the drive.

Thanks for commenting about my bug,
Chiba

On Wed, Apr 11, 2012 at 11:45 PM, Brendan Donegan
<email address hidden> wrote:
> When you insert the USB key does the drive get mounted and the USB icon
> appear on the launcher?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/978925
>
> Title:
> USB/insert test fail
>
> Status in “checkbox” package in Ubuntu:
> New
>
> Bug description:
> I have started System testing to complete all the test, however I
> encountered test failiure during usb/insert test. Macbook air 4.1 with
> up-to-date Ubuntu 12.04 beta2.
>
> Description: Ubuntu precise (development branch)
> Release: 12.04
> version: checkbox-qt 0.13.6
>
> ProblemType: Bug
> DistroRelease: Ubuntu 12.04
> Package: linux-image-3.2.0-22-generic 3.2.0-22.35
> ProcVersionSignature: Ubuntu 3.2.0-22.35-generic 3.2.14
> Uname: Linux 3.2.0-22-generic x86_64
> AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
> ApportVersion: 2.0.1-0ubuntu1
> Architecture: amd64
> ArecordDevices:
> **** List of CAPTURE Hardware Devices ****
> card 0: PCH [HDA Intel PCH], device 0: Cirrus Analog [Cirrus Analog]
> Subdevices: 1/1
> Subdevice #0: subdevice #0
> AudioDevicesInUse:
> USER PID ACCESS COMMAND
> /dev/snd/controlC0: sencing 1983 F.... pulseaudio
> Card0.Amixer.info:
> Card hw:0 'PCH'/'HDA Intel PCH at 0xa0600000 irq 48'
> Mixer name : 'Intel CougarPoint HDMI'
> Components : 'HDA:10134206,106b6200,00100302 HDA:80862805,80860101,00100000'
> Controls : 29
> Simple ctrls : 9
> CheckboxCommand: removable_storage_watcher insert usb
> CheckboxData: 10 seconds have expired waiting for the device to be inserted.
> CheckboxTest: usb/insert
> Date: Wed Apr 11 22:25:13 2012
> EcryptfsInUse: Yes
> InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
> MachineType: Apple Inc. MacBookAir4,1
> ProcFB: 0 inteldrmfb
> ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-22-generic root=UUID=c6e59ace-4265-4bc7-90bc-f9348ad6df80 ro quiet splash vt.handoff=7
> RelatedPackageVersions:
> linux-restricted-modules-3.2.0-22-generic N/A
> linux-backports-modules-3.2.0-22-generic N/A
> linux-firmware 1.78
> SourcePackage: linux
> StagingDrivers: mei
> UpgradeStatus: No upgrade log present (probably fresh install)
> dmi.bios.date: 06/30/2011
> dmi.bios.vendor: Apple Inc.
> dmi.bios.version: MBA41.88Z.0077.B00.1106300929
> dmi.board.asset.tag: Base Board Asset Tag#
> dmi.board.name: Mac-C08A6BB70A942AC2
> dmi.board.vendor: Apple Inc.
> dmi.board.version: MacBookAir4,1
> dmi.chassis.type: 10
> dmi.chassis.vendor: Apple Inc.
> dmi.chassis.version: Mac-C08A6BB70A942AC2
> dmi.modalias: dmi:bvnAppleInc.:bvrMBA41.88Z.0077.B00.1106300929:bd06/30/2011:svnAppleInc.:pnMacBookAir4,1:pvr1.0:rvnAppleInc.:rnMac-C08A6BB70A942AC2:rvrMacBookAir4,1:cvnAppleInc.:ct10:cvrMac-C08A6BB70A942AC2:
> dmi.product.name: MacBookAir4,1
> dmi.produc...

Read more...

Revision history for this message
Jeff Lane  (bladernr) wrote :

From the time you click Test, you have 10 seconds to insert the key. Unfortunately, this also includes the time necessary for the system to recognize the key, load the proper drivers and mount the key. In some cases (such as a new key, fresh boot, fresh install, etc) it's quite possible to exceed the 10 second time limit while waiting for the system to initialize the key and register the event that the test is looking for.

The behaviour of the test is to watch for the insert event to occur and exit immediately on detection OR exit after 10 seconds if no detection occurred, I think a safe solution would be to bump the default up to 20 seconds. That way we should be guaranteed to get the events for even slow systems that trigger false failures without extending test time appreciably since the test is supposed to exit as soon as it registers the event.

Just to document this, here are two passing and failing insert and remove tests using removable_storage_watcher. Note that the passing tests are obvious and the failing tests take just a shade over 10 seconds of real time.

bladernr@klaatu:~$ time /usr/share/checkbox/scripts/removable_storage_watcher insert usb
Expected device usb inserted
Expected device usb inserted

real 0m4.429s
user 0m0.112s
sys 0m0.024s
bladernr@klaatu:~$ time /usr/share/checkbox/scripts/removable_storage_watcher insert usb
10 seconds have expired waiting for the device to be inserted.

real 0m10.470s
user 0m0.040s
sys 0m0.012s
bladernr@klaatu:~$ time /usr/share/checkbox/scripts/removable_storage_watcher remove usb
10 seconds have expired waiting for the device to be inserted.

real 0m10.309s
user 0m0.048s
sys 0m0.008s
bladernr@klaatu:~$ time /usr/share/checkbox/scripts/removable_storage_watcher remove usb
Removable storage device has been removed

real 0m0.972s
user 0m0.072s
sys 0m0.008s

Jeff Lane  (bladernr)
Changed in checkbox (Ubuntu):
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Jeff Lane (bladernr)
Changed in checkbox:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Jeff Lane (bladernr)
milestone: none → 0.13.x
status: In Progress → Fix Committed
Ara Pulido (ara)
Changed in checkbox:
status: Fix Committed → Fix Released
Changed in checkbox (Ubuntu):
status: In Progress → 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.