<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>13504</bug_id>
          
          <creation_ts>2019-09-07 21:54:34 +0000</creation_ts>
          <short_desc>[master-next] qemumips-lsb sytemd failure</short_desc>
          <delta_ts>2019-10-10 12:24:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>3.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>84899</commentid>
    <comment_count>0</comment_count>
      <attachid>4559</attachid>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-09-07 21:54:34 +0000</bug_when>
    <thetext>Created attachment 4559
local.conf

Test requires systemtap to be installed
Traceback (most recent call last):
  File &quot;/home/pokybuild/yocto-worker/qemumips-lsb/build/meta/lib/oeqa/core/decorator/__init__.py&quot;, line 36, in wrapped_f
    return func(*args, **kwargs)
  File &quot;/home/pokybuild/yocto-worker/qemumips-lsb/build/meta/lib/oeqa/runtime/cases/systemd.py&quot;, line 98, in test_systemd_failed
    self.assertTrue(match, msg=&apos;Some systemd units failed:\n%s&apos; % output)
AssertionError: None is not true : Some systemd units failed:
  UNIT                        LOAD   ACTIVE SUB    DESCRIPTION              
● systemd-hwdb-update.service loaded failed failed Rebuild Hardware Database
LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.● qemumips
    State: degraded
     Jobs: 0 queued
   Failed: 1 units
    Since: Sat 2019-09-07 16:02:44 UTC; 6min ago
   CGroup: /
           ├─user.slice
           │ └─user-0.slice
           │   ├─session-c54.scope
           │   │ ├─522 sshd: root@notty
           │   │ ├─524 sh -c export PATH=/usr/sbin:/sbin:/usr/bin:/bin; SYSTEMD_BUS_TIMEOUT=240s systemctl status --full --failed 
           │   │ └─525 systemctl status --full --failed
           │   ├─session-c1.scope
           │   │ ├─162 /bin/login --
           │   │ └─173 -sh
           │   └─user@0.service
           │     └─init.scope
           │       ├─167 /lib/systemd/systemd --user
           │       └─168 (sd-pam)
           ├─init.scope
           │ └─1 /sbin/init
           └─system.slice
             ├─rngd.service
             │ └─99 /usr/sbin/rngd -f -r /dev/hwrng
             ├─systemd-timesyncd.service
             │ └─252 /lib/systemd/systemd-timesyncd
             ├─nfs-statd.service
             │ └─160 /usr/sbin/rpc.statd -F
             ├─syslogd.service
             │ └─342 /sbin/syslogd
             ├─dbus.service
             │ └─145 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only
             ├─system-serial\x2dgetty.slice
             │ └─serial-getty@ttyS0.service
             │   └─164 /sbin/agetty -8 -L ttyS0 115200 xterm
             ├─system-getty.slice
             │ └─getty@tty1.service
             │   └─163 /sbin/agetty -o -p -- \u --noclear tty1 linux
             ├─rpcbind.service
             │ └─149 /usr/sbin/rpcbind
             ├─systemd-logind.service
             │ └─147 /lib/systemd/systemd-logind
             ├─systemd-resolved.service
             │ └─157 /lib/systemd/systemd-resolved
             ├─crond.service
             │ └─151 /usr/sbin/crond -n
             ├─klogd.service
             │ └─158 /sbin/klogd
             ├─systemd-udevd.service
             │ └─129 /lib/systemd/systemd-udevd
             ├─atd.service
             │ └─148 /usr/sbin/atd -f
             ├─systemd-journald.service
             │ └─109 /lib/systemd/systemd-journald
             └─systemd-networkd.service
               └─135 /lib/systemd/systemd-networkd
Startup finished in 24.698s (kernel) + 2min 17.063s (userspace) = 2min 41.761s.
Target boot time 161.761 exceeds systemd&apos;s TimeoutStartSec 90</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84900</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-09-07 21:55:45 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/55/builds/340/steps/8/logs/step1c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84924</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2019-09-11 08:37:25 +0000</bug_when>
    <thetext>There is no error there and just as it reports: &apos;timeout&apos;. 

-- Logs begin at Wed 2019-09-11 07:52:05 UTC, end at Wed 2019-09-11 07:56:29 UTC. --
Sep 11 07:52:13 qemumips systemd[1]: Starting Rebuild Hardware Database...
Sep 11 07:53:43 qemumips systemd[1]: systemd-hwdb-update.service: Start operation timed out. Terminating.
Sep 11 07:53:43 qemumips systemd[1]: systemd-hwdb-update.service: Main process exited, code=killed, status=15/TERM
Sep 11 07:53:43 qemumips systemd[1]: systemd-hwdb-update.service: Failed with result &apos;timeout&apos;.
Sep 11 07:53:43 qemumips systemd[1]: Failed to start Rebuild Hardware Database.


There is only one time failure during about 20 times qemu boot. But when I use command &apos;stress&apos; to
produce high cpu load, it fails to start systemd-hwdb-update everytime.

I suggest to add &apos;timeout&apos; to exceptions in the test cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84997</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-09-17 15:59:12 +0000</bug_when>
    <thetext>seems mips is just slow. https://github.com/systemd/systemd/issues/13581</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85250</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-10-07 19:40:05 +0000</bug_when>
    <thetext>Patch on the list.  Turns out we already generate the hwdb at rootfs time *and* have postinsts to do this after the event, so we just need to delete the service file like several other distros already do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85287</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-10-10 12:24:20 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=3fd81b0db24776432d35e1bfb84a68bdfec5e0d2</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4559</attachid>
            <date>2019-09-07 21:54:34 +0000</date>
            <delta_ts>2019-09-07 21:54:34 +0000</delta_ts>
            <desc>local.conf</desc>
            <filename>file_13504.txt</filename>
            <type>text/plain</type>
            <size>1393</size>
            <attacher name="Armin Kuster">akuster</attacher>
            
              <data encoding="base64">ICBNQUNISU5FID0gInFlbXVtaXBzIg0KICBESVNUUk8gPSAicG9reS1hbHRjZmciDQogIFNES01B
Q0hJTkUgPSAiaTY4NiINCiAgUEFDS0FHRV9DTEFTU0VTID0gInBhY2thZ2VfcnBtIHBhY2thZ2Vf
ZGViIHBhY2thZ2VfaXBrIg0KICBETF9ESVIgPSAnL3Nydi9hdXRvYnVpbGRlci9hdXRvYnVpbGRl
ci55b2N0b3Byb2plY3Qub3JnL2N1cnJlbnRfc291cmNlcycNCiAgU1NUQVRFX0RJUiA/PSAnL3Ny
di9hdXR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