Unable to start Power Off test

Bug #1197247 reported by Po-Hsu Lin
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Critical
Sylvain Pineau

Bug Description

After pressing the "Test" button in the poweroff test, the count down window does not pop-out.
The system does not poweroff, and checkbox select "No" automatically.

Checkbox version:
ii checkbox 0.16.4+bzr2221+201307021119~precise1 System testing application
ii checkbox-certification 0.16.5+bzr601+201306291601~precise1 Checkbox Certification Tests
ii checkbox-certification-client 0.16.5+bzr601+201306291601~precise1 Client Certification
ii checkbox-certification-tools 0.16.5+bzr601+201306291601~precise1 Checkbox Certification Tools
ii checkbox-qt 0.16.4+bzr2221+201307021119~precise1 QT4 interface for checkbox

Error message could be found in checkbox-certification.log
** (pm_test:10692): WARNING **: Command line `dbus-launch --autolaunch=2e03121b3a380b4f333749e10000000d --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n

Log file attached

Related branches

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

You were right, it's related to the new pkexec policy.
The policy file (allowing X11 related jobs) is missing in the MANIFEST.in file.

Changed in checkbox:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Sylvain Pineau (sylvain-pineau)
status: Triaged → In Progress
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

humm, the policy file is well in the generated deb file.

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I've tried to build a binary package from trunk and actually it fails with the following error:

sudo dpkg -i checkbox_0.16.6_amd64.deb
(Reading database ... 303601 files and directories currently installed.)
Preparing to replace checkbox 0.16.6 (using checkbox_0.16.6_amd64.deb) ...
Unpacking replacement checkbox ...
Setting up checkbox (0.16.6) ...
cp: cannot stat ‘/usr/share/checkbox/examples/virtualization.cfg’: No such file or directory
dpkg: error processing checkbox (--install):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
 checkbox

virtualization.cfg is missing in debian/checkbox.inst but the policy file is well copied before the (postinst) failure.

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

I did the build and install on raring and it works, but using the ppa precise version on a precise system I can see the bug, the policy file is not installed, I don't even see the cfg (network and virtualization) files in /etc/checkbox.d

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Built locally on an up-to-date raring system the checkbox deb package contains the policy file and the cfg files.
the raring and precise version available in the ppa don't have them, investigating...

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

ok, got it. the packaging branch is has obsolete versions of all the debian {pre,post}{inst,rm} files.

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

As discussed this is my fault (tm). The checkbox-packaging branch and the debian directory in checkbox trunk are out of sync, they both contain sets of changes and they'd need to be "merged" and then duplicated in both trunk and checkbox-packaging.

Trunk contains the changes for the policy files for pkexec.

checkbox-packaging has the changes for gstreamer 1.0 dependencies.

Sorry for the problems I caused :(

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

The following two branches should address this problem. They bring the checkbox trunk and checkbox-packaging branches into sync, so they both include the policy file correctly, as well as installing a few missing config files, meaning that they should then be equivalent and the produced packages should work as expected.

https://code.launchpad.net/~roadmr/checkbox/packaging-sync-packaging/

https://code.launchpad.net/~roadmr/checkbox/sync-packaging/

Changed in checkbox:
status: In Progress → Fix Committed
Changed in 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.