Skip to content

While using MaaS deployed DUTs in Cert Lab, the systemd_analyze is failed #47

@hanhsuan

Description

@hanhsuan

While using MaaS deployed DUTs in Cert Lab, the systemd_analyze is failed for waiting pc-sanity-backgroud-photo.service. However, this is unnecessary service for normal users.

If your systemd-analyze test failed, you could use following command to check that is failed by pc-sanity-backgroud-photo.service

ubuntu@dell-optiplex-7000-c30517:~$ systemctl list-jobs
JOB UNIT                                 TYPE  STATE  
156 pc-sanity-backgroud-photo.service    start running
1   [graphical.target](http://graphical.target/)                     start waiting
138 [cloud-init.target](http://cloud-init.target/)                    start waiting
2   [multi-user.target](http://multi-user.target/)                    start waiting
158 systemd-update-utmp-runlevel.service start waiting
112 tlp.service                          start waiting
146 cloud-final.service                  start waiting

7 jobs listed.
ubuntu@dell-optiplex-7000-c30517:~$ sudo systemctl status pc-sanity-backgroud-photo.service 

● pc-sanity-backgroud-photo.service - change background photo for sanity test
     Loaded: loaded (/lib/systemd/system/pc-sanity-backgroud-photo.service; enabled; vendor preset: enabled)
     Active: activating (start) since Wed 2023-10-18 10:52:35 CST; 3min 49s ago
   Main PID: 1522 (sh)
      Tasks: 3 (limit: 18672)
     Memory: 29.2M
     CGroup: /system.slice/pc-sanity-backgroud-photo.service
             ├─1522 /bin/sh -c /usr/sbin/pc-sanity-backgroud-photo
             ├─1527 /bin/bash /usr/sbin/pc-sanity-backgroud-photo
             └─2135 wget http://somerville-jenkins.cctu.space:3000/alextu/internal-db/raw/branch/master/cid_clabel_mapping.json -O /tmp/cid_clabel_mapping.js>

 十  18 10:52:36 dell-optiplex-7000-c30517 sh[1666]: ++ xargs
 十  18 10:52:36 dell-optiplex-7000-c30517 sh[1667]: ++ awk -F+ '{print $2"+"$3}'
 十  18 10:52:37 dell-optiplex-7000-c30517 sh[1527]: + eval convert -pointsize 200 -fill white -draw ''\''text' 270,400 '"c30517' 'fossa-rockruff-adl+X165"' >
 十  18 10:52:37 dell-optiplex-7000-c30517 sh[1527]: ++ convert -pointsize 200 -fill white -draw 'text 270,400 "c30517 fossa-rockruff-adl+X165" ' /usr/share/>
 十  18 10:52:39 dell-optiplex-7000-c30517 sh[1527]: + wget http://somerville-jenkins.cctu.space:3000/alextu/internal-db/raw/branch/master/cid_clabel_mapping>
 十  18 10:52:39 dell-optiplex-7000-c30517 sh[2135]: --2023-10-18 10:52:39--  http://somerville-jenkins.cctu.space:3000/alextu/internal-db/raw/branch/master/>
 十  18 10:52:39 dell-optiplex-7000-c30517 sh[2135]: Resolving [somerville-jenkins.cctu.space](http://somerville-jenkins.cctu.space/) ([somerville-jenkins.cctu.space](http://somerville-jenkins.cctu.space/))... 10.102.180.11
 十  18 10:54:49 dell-optiplex-7000-c30517 sh[2135]: Connecting to somerville-jenkins.cctu.space (somerville-jenkins.cctu.space)|10.102.180.11|:3000... faile>
 十  18 10:54:49 dell-optiplex-7000-c30517 sh[2135]: Retrying.
 十  18 10:54:50 dell-optiplex-7000-c30517 sh[2135]: --2023-10-18 10:54:50--  (try: 2)  http://somerville-jenkins.cctu.space:3000/alextu/internal-db/raw/bran>

If so, you could stop this service to avoid this issue

sudo systemctl stop pc-sanity-backgroud-photo.service
sudo systemctl disable pc-sanity-backgroud-photo.service

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions