hdd_parking job failed due to /usr/sbin/hdapsd does not exist

Bug #1367108 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
High
Daniel Manrique

Bug Description

While testing 12.04.5, the hdd_parking job failed with the following error message:
ubuntu@201210-11859:/usr/lib/2013.com.canonical.certification:checkbox/bin$ ./hdd_parking
Starting HDD protection test - move the system around on all axis. No particular force should be required.
Traceback (most recent call last):
  File "./hdd_parking", line 70, in <module>
    sys.exit(main())
  File "./hdd_parking", line 67, in main
    return hdaps_test(parser.parse_args().timeout)
  File "./hdd_parking", line 47, in hdaps_test
    universal_newlines=True)
  File "/usr/lib/python3.2/subprocess.py", line 745, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.2/subprocess.py", line 1361, in _execute_child
    raise child_exception_type(errno_num, err_msg)
OSError: [Errno 2] No such file or directory: '/usr/sbin/hdapsd'

The hdapsd package needs to be installed before start testing, maybe we should consider about adding this package into our dependency list.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

After hdapsd installed 201210-11859:
ubuntu@201210-11859:~$ hdapsd -d /dev/sda
Tue Sep 9 02:04:08 2014: Starting hdapsd
Tue Sep 9 02:04:08 2014: Could not find a suitable interface

And no hdaps module could be found in lsmod output.

So the job still not working, from "apt-cache show", it seems that maybe this package only works for IBM/Lenovo ThinkPads and Apple iBooks/PowerBooks, if that's true, we will never be able to test it with Dell / HP laptops.

ubuntu@201210-11859:~$ apt-cache show hdapsd
Package: hdapsd
Priority: optional
Section: universe/misc
Installed-Size: 128
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Evgeni Golov <email address hidden>
Architecture: amd64
Version: 1:20090401-2
Depends: libc6 (>= 2.7)
Recommends: tp-smapi-dkms | tp-smapi-source
Filename: pool/universe/h/hdapsd/hdapsd_20090401-2_amd64.deb
Size: 19462
MD5sum: d383b6565cd32918d08583fadf0e380e
SHA1: baab6a94e82a3ea14f6effb474efd79219d8487f
SHA256: 21fcec46cb8b74dfe827ba7e005323b98a86916573ed015fb50b97f6b8d9037e
Description-en: HDAPS daemon for IBM/Lenovo ThinkPads and Apple iBooks/PowerBooks
 This is a disk protection user-space daemon. It monitors the acceleration
 values through the HDAPS or AMS interface and automatically initiates disk
 head parking if a fall or sliding of the laptop is detected.

 It is recommended that you use this daemon with the hdaps module provided
 by tp-smapi rather the one in the kernel, as this will save you a bit
 power and will work on a wider range of ThinkPads.
Description-md5: 936305df0dc868c29bbd040a692448ff
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

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

The hdd parking test only works with hdapsd, so you're correct that we can't test systems that don't use that to park the disk.

The accelerometer test *does* work with HP systems but it's a separate job.

I'll check to ensure we add hdapsd to our dependencies and make this bug about that.

Daniel Manrique (roadmr)
Changed in plainbox-provider-checkbox:
status: New → Triaged
importance: Undecided → High
milestone: none → 0.12
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

I will need to double check with a recently-testing Lenovo laptop tomorrow, IIRC it passed with this without extra package installation, maybe it's a default package for Lenovo systems.

And yes, accelerometer job works with HP systems.

Therefore I think we could conclude that even a Dell / HP system comes with a working accelerometer, the grey list note for HDD protection still needed, since they don't have a corresponding protection mechanism like HDAPS.

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

OK, did three things:

- Added hdapsd to dependencies for the provider package
- Added hdapsd to the job's requirements (won't even run if hdapsd is not installed)
- Fixed the script so it exits with a proper error message instead of a horrible backtrace and exception.

Changed in plainbox-provider-checkbox:
status: Triaged → In Progress
assignee: nobody → Daniel Manrique (roadmr)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Yeah, the Lenovo does not have this package installed as well.
Thanks for the fix.

Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Daniel Manrique (roadmr)
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.

Other bug subscribers

Remote bug watches

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