checkbox-ng.service is disabled after a reboot on Jammy

Bug #1967032 reported by Kevin Yeh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Fix Released
Critical
Sylvain Pineau

Bug Description

I tried to run the graphic test on Jammy, after switching GPU profile then do a reboot, the session wasn't back. So I checked the service by "systemctl status checkbox-ng" and got result as follwoing.
https://pastebin.canonical.com/p/7TxTdSFQkG/
The tests need to reboot or poweroff all have this issue, I tried reboot/poweroff test as well.

I downloaded jammy from daily-build site, the uploaded date was 2022-03-26 08:25. I also tried to use the jammy image which uploaded by Paul in our MAAS, and it didn't have this issue, but that image in our MAAS should not be latest daily build.

Related branches

Revision history for this message
Kevin Yeh (kevinyeh) wrote :

here is a journal log for checkbox-ng.service
https://pastebin.canonical.com/p/fWRhNzFcK2/

Changed in checkbox-ng:
milestone: none → 1.17.0
assignee: nobody → Sylvain Pineau (sylvain-pineau)
status: New → In Progress
importance: Undecided → Critical
Revision history for this message
Kevin Yeh (kevinyeh) wrote :

following are reproduce steps

1. install jammy image which downloaded from https://cdimage.ubuntu.com/daily-live/current/
2. sudo apt-add-repository ppa:checkbox-dev/ppa
3. sudo apt-get install checkbox-ng plainbox-provider-resource-generic plainbox-provider-certification-server plainbox-provider-checkbox canonical-certification-server
4. use a host machine execute checkbox-cli remote $ip
5. select test plan "power-management-reboot-poweroff-cert-automated"
6. select test case "power-management/reboot"

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

The script (pm_test) used to perform reboots was trying to reactivate the checkbox systemd service from an x-terminal-emulator. But such command when invoked as root crashes:

Error constructing proxy for org.gnome.Terminal: /org/gnome/Terminal/Factory0:
Failed to execute child process "dbus-launch" (No such file or directory)

On wayland session, dbus-launch is not supproted.

The proposed patch ensures the respawn checkbox commands are always executed.

Changed in checkbox-ng:
status: In Progress → Fix Committed
Revision history for this message
Kevin Yeh (kevinyeh) wrote :

This issue has been fixed.
Thanks.

Changed in checkbox-ng:
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.