[Remote] Session missing after Slave wake from S5 WOL

Bug #1855370 reported by Ray Chen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Provider - Base
Fix Released
High
Sylvain Pineau

Bug Description

[Summary]
[Remote] Session missing after Slave wake from S5 WOL

[Steps to reproduce]
1. Install checkbox-snappy --devmode on both master and slave
$ snap install checkbox-snappy --devmode

2. Start checkbox-sanppy master from x86 desktop (ubuntu 18.04)
$ checkbox-snappy.checkbox-cli master <ip_address>

3. Start checkbox snappy on slave and enable it as daemon and service
$ checkbox-snappy.checkbox-cli slave

4. select testplan id: snappy-cert-whitelist

5. Running S5 testing and wake the system by pressing power button
( since magic packet not work)

[Expected result]
Slave resume previous session success

[Actual result]
Session missing after Slave wake from S5 WOL, Master enter to Test plan
 selection page

[Failure rate]

[Additional information]
SKU:
system-manufacturer: Intel Corporation
system-product-name: NUC7PJYH
bios-version: JYGLKCPX.86A.0037.2018.0423.1539
CPU: Intel(R) Pentium(R) Silver J5005 CPU @ 1.50GHz (4x)
GPU: 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:3184] (rev 03)
kernel-version: 4.15.0-72-generic

Revision history for this message
Ray Chen (ray.chen) wrote :

Automatically attached

Revision history for this message
Ray Chen (ray.chen) wrote :

Automatically attached

Revision history for this message
Ray Chen (ray.chen) wrote :

Automatically attached

Revision history for this message
Ray Chen (ray.chen) wrote :

Automatically attached

Revision history for this message
Ray Chen (ray.chen) wrote :

● snap.checkbox-snappy.remote-slave.service - Service for snap application checkbox-snappy.remote-slave
   Loaded: loaded (/etc/systemd/system/snap.checkbox-snappy.remote-slave.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-12-06 02:19:13 UTC; 6min ago
 Main PID: 1126 (checkbox-slave)
    Tasks: 3 (limit: 4191)
   CGroup: /system.slice/snap.checkbox-snappy.remote-slave.service
           ├─1126 /bin/sh /snap/checkbox-snappy/2012/bin/checkbox-slave
           └─1391 python3 /snap/checkbox-snappy/2012/checkbox-runtime/bin/checkbox-cli slave

Dec 06 02:19:13 localhost systemd[1]: Started Service for snap application checkbox-snappy.remote-slave.
Dec 06 02:19:18 localhost sudo[1456]: root : TTY=unknown ; PWD=/root/snap/checkbox-snappy/2012 ; USER=root ; COMMAND=/bin/true
Dec 06 02:19:18 localhost sudo[1456]: pam_unix(sudo:session): session opened for user root by (uid=0)
Dec 06 02:19:18 localhost sudo[1456]: pam_unix(sudo:session): session closed for user root
Dec 06 02:21:59 localhost checkbox-snappy.remote-slave[1126]: unable to find nested part: com.canonical.certification::led/power
Dec 06 02:21:59 localhost checkbox-snappy.remote-slave[1126]: unable to find nested part: com.canonical.certification::led/power-blink-suspend
Dec 06 02:21:59 localhost checkbox-snappy.remote-slave[1126]: unable to find nested part: com.canonical.certification::led/serial
Dec 06 02:21:59 localhost checkbox-snappy.remote-slave[1126]: unable to find nested part: com.canonical.certification::tpm-smoke-tests
Dec 06 02:22:09 localhost checkbox-snappy.remote-slave[1126]: Ignoring snappy/test-store-config-{store} with missing template parameter store

Ray Chen (ray.chen)
summary: - [Remote] Session missiing after Slave wake from S5 WOL
+ [Remote] Session missing after Slave wake from S5 WOL
description: updated
description: updated
Ray Chen (ray.chen)
Changed in plainbox-provider-checkbox:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Revision history for this message
Paul Larson (pwlars) wrote :

Don't start the slave manually, instead use:
$ sudo snap set checkbox-snappy slave=enabled
$ sudo snap restart checkbox-snappy.remote-slave

Changed in plainbox-provider-checkbox:
status: New → Invalid
Revision history for this message
Betty Lin (bettyl) wrote :

Already follow #6 to enable checkbox slave daemon service.
But this problem is still existed.

rtc/battery also has the same problem.

rtc/battery reproduce steps:
command:
 rtcwake -v -m disable
 rtcwake -v -m off -s 30

checkbox version:
checkbox-snappy 18.14 2012 stable ce-certification-qa devmode
checkbox18 1.11 624 stable ce-certification-qa -

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

pretty sure it's a duplicate of the bug affecting classic images where the snappy restart strategy is not working.

Changed in plainbox-provider-checkbox:
status: Invalid → Confirmed
importance: Undecided → High
Changed in plainbox-provider-checkbox:
status: Confirmed → 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.