[Checkbox SNAP] the checkbox session won't resume automatically after running reboot/power-off test on a desktop image

Bug #1967454 reported by StanleyHuang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Expired
Critical
Unassigned

Bug Description

[Summary]
the checkbox session won't resume automatically after running reboot/power-off test

I did some investigation on this issue, the reason why checkbox session won't resume automatically it's because of the command is incorrect in autostart config file. As you can see from following logs, it try to resume pm_test script by /snap/bin/checkbox.pm-test. But there's no such file in /snap/bin folder.

u@u-ThinkStation-P350:~$ cat pm_test.py.desktop

[Desktop Entry]
Name=poweroff test
Comment=Verify poweroff works properly
Exec=sudo /snap/bin/checkbox.pm-test -r 0 -w 60 --hardware-delay 30 --pm-delay 5 --min-pm-time 58 --max-pm-time 300 --append --total 1 --start 1648781293 --pm-timestamp 1648781293 --silent --log-level=debug --log-dir=/var/tmp/checkbox-ng/sessions/remote-2022-04-01T02.47.34.session/session-share --suspends-before-reboot=0 --checkbox-respawn-cmd=/var/tmp/checkbox-ng/sessions/remote-2022-04-01T02.47.34.session/session-share/__respawn_checkbox poweroff
Type=Application
X-GNOME-Autostart-enabled=true
Hidden=false

u@u-ThinkStation-P350:~$ ls /snap/bin/
checkbox.checkbox-cli checkbox.sru qabro qabro.sosreport
checkbox.client-cert-iot-server checkbox.test-runner qabro.amixer snap-store
checkbox.configure chromium qabro.lspci snap-store.ubuntu-software
checkbox.shell chromium.chromedriver qabro.lsusb snap-store.ubuntu-software-local-file

[Steps to reproduce]
1. Install checkbox20 snap and checkbox snap
2. Perform "Power Management reboot and power off tests (automated)" test via checkbox.checkbox-cli
cmd> checkbox.checkbox-cli run com.canonical.certification::power-management-reboot-poweroff-cert-automated
3. checkbox session won't resume automatically after boot into OS.

[Expected result]
checkbox session will be resume automatically after restart system.

[Actual result]
checkbox session won't resume automatically after restart system.

[Failure rate]
3/3

[Stage]
Issue reported and logs collected at a later stage

Revision history for this message
StanleyHuang (stanley31) wrote :

Automatically attached

Changed in plainbox-provider-checkbox:
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
StanleyHuang (stanley31) wrote :

Automatically attached

Revision history for this message
StanleyHuang (stanley31) wrote :

Automatically attached

Revision history for this message
StanleyHuang (stanley31) wrote :

Automatically attached

StanleyHuang (stanley31)
description: updated
Vic Liu (zongminl)
summary: [Checkbox SNAP] the checkbox session won't resume automatically after
- running reboot/power-off test
+ running reboot/power-off test on a desktop image
Pierre Equoy (pieq)
tags: added: checkbox-session-resume
Revision history for this message
Maksim Beliaev (beliaev-maksim) wrote :

Bug was migrated to GitHub: https://github.com/canonical/checkbox/issues/50.
Bug is no more monitored here.

Changed in plainbox-provider-checkbox:
status: Confirmed → Expired
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.