<?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>7393</bug_id>
          
          <creation_ts>2015-03-04 16:30:52 +0000</creation_ts>
          <short_desc>systemd - check failed services - failed for systemd-tmpfiles-setup.service</short_desc>
          <delta_ts>2015-09-16 07:24:37 +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>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ionut Chisanovici">ionutx.chisanovici</reporter>
          <assigned_to name="Randy Witt">randy.e.witt</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>net147</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.e.witt</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49178</commentid>
    <comment_count>0</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2015-03-04 16:30:52 +0000</bug_when>
    <thetext>Hi,

The systemd check failed services failed for systemd-tmpfiles-setup.service:

======================================================================
| FAIL: test_systemd_failed (oeqa.runtime.systemd.SystemdBasicTests)
| ----------------------------------------------------------------------
| Traceback (most recent call last):
|   File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-qa-systemd/build/meta/lib/oeqa/utils/decorators.py&quot;, line 97, in wrapped_f
|     return func(*args)
|   File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-qa-systemd/build/meta/lib/oeqa/utils/decorators.py&quot;, line 86, in wrapped_f
|     return f(*args)
|   File &quot;/home/autobuilder/yocto-autobuilder/yocto-worker/nightly-qa-systemd/build/meta/lib/oeqa/runtime/systemd.py&quot;, line 65, in test_systemd_failed
|     self.assertTrue(match, msg=&quot;Some systemd units failed:\n%s&quot; % output)
| AssertionError: None is not true : Some systemd units failed:
|   UNIT                           LOAD   ACTIVE SUB    DESCRIPTION
| ● systemd-tmpfiles-setup.service loaded failed failed Create Volatile Files and Directories
| 
| 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. Pass --all to see loaded but inactive units, too.
| To show all installed unit files use &apos;systemctl list-unit-files&apos;.● qemux86-64
|     State: degraded
|      Jobs: 0 queued
|    Failed: 1 units
|     Since: Wed 2015-03-04 15:56:29 UTC; 17min ago
|    CGroup: /
|            ├─ 1 /sbin/init
|            ├─81 /sbin/v86d
|            └─system.slice
|              ├─avahi-daemon.service
|              │ ├─303 avahi-daemon: running [qemux86-64.local
|              │ └─309 avahi-daemon: chroot helpe
|              ├─dbus.service
|              │ └─298 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
|              ├─distcc.service
|              │ ├─300 /usr/bin/distccd --verbose --no-detach --daemon --allow 192.168.7.0/24
|              │ ├─313 /usr/bin/distccd --verbose --no-detach --daemon --allow 192.168.7.0/24
|              │ ├─316 /usr/bin/distccd --verbose --no-detach --daemon --allow 192.168.7.0/24
|              │ └─320 /usr/bin/distccd --verbose --no-detach --daemon --allow 192.168.7.0/24
|              ├─wpa_supplicant.service
|              │ └─331 /usr/sbin/wpa_supplicant -u
|              ├─busybox-klogd.service
|              │ └─297 /sbin/klogd -n
|              ├─system-serial\x2dgetty.slice
|              │ └─serial-getty@ttyS0.service
|              │   └─325 /sbin/agetty -8 -L --keep-baud ttyS0 115200 xterm
|              ├─systemd-journald.service
|              │ └─65 /lib/systemd/systemd-journald
|              ├─connman.service
|              │ └─319 /usr/sbin/connmand -n
|              ├─systemd-logind.service
|              │ └─302 /lib/systemd/systemd-logind
|              ├─system-getty.slice
|              │ └─getty@tty1.service
|              │   └─326 /sbin/agetty --noclear tty1 linux
|              ├─ofono.service
|              │ └─301 /usr/sbin/ofonod -n
|              ├─systemd-udevd.service
|              │ └─99 /lib/systemd/systemd-udevd
|              ├─busybox-syslog.service
|              │ └─454 /sbin/syslogd -n -C
|              ├─system-dropbear.slice
|              │ ├─dropbear@111-192.168.7.2:22-192.168.7.1:33974.service
|              │ │ ├─1506 /usr/sbin/dropbear -i -r /etc/dropbear/dropbear_rsa_host_key -B
|              │ │ ├─1507 sh -c  . /etc/profile; systemctl status --full --failed
|              │ │ └─1508 systemctl status --full --failed
|              │ ├─dropbear@82-192.168.7.2:22-192.168.7.1:33945.service
|              │ │ └─1326 /usr/bin/psplash --angle 0
|              │ └─dropbear@14-192.168.7.2:22-192.168.7.1:33869.service
|              │   └─486 x11vnc -display :0 -bg -o x11vnc.log
|              └─xserver-nodm.service
|                ├─304 xinit /etc/X11/Xsession -- /usr/bin/Xorg :0 -br -pn
|                ├─314 /usr/bin/Xorg :0 -br -pn
|                ├─340 matchbox-window-manager -theme Sato -use_desktop_mode decorated -use_cursor no
|                ├─345 dbus-launch --sh-syntax --exit-with-session
|                ├─346 /usr/bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
|                ├─364 connman-applet
|                ├─370 /usr/lib/gconf/gconfd-2
|                ├─383 matchbox-desktop
|                ├─384 matchbox-panel --titlebar --start-applets showdesktop,windowselector --end-applets clock,battery,,systray,startup-notify,notify
|                └─385 /usr/bin/settings-daemon

BUILD: 1.8_M3.RC3: 5c1c8af083ca7b57cc339d16ce0513b27c5dac90
ENVIRONMENT: Ubuntu 14.10 x86_64
STEPS TO REPRODUCE: 
1.  Prepare a core-image-minimal image with systemd support and launch it. 
     Refer to TC-549 in order how to build it.
2. List all the failed services by running the following command:
    $ systemctl --failed

EXPECTED OUTCOME:
2. All failed service should be listed.

Build Configuration:
BB_VERSION        = &quot;1.25.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-14.10&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.7&quot;
TUNE_FEATURES     = &quot;m64 core2&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:5c1c8af083ca7b57cc339d16ce0513b27c5dac90&quot;

Cheers,
Ionut C</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49183</commentid>
    <comment_count>1</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2015-03-04 18:11:32 +0000</bug_when>
    <thetext>*** Bug 7388 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49186</commentid>
    <comment_count>2</comment_count>
    <who name="Khem Raj">raj.khem</who>
    <bug_when>2015-03-04 22:24:49 +0000</bug_when>
    <thetext>Please check if you still see it with 

http://patchwork.openembedded.org/patch/89779/

applied</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49187</commentid>
    <comment_count>3</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2015-03-04 22:29:55 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Please check if you still see it with 
&gt; 
&gt; http://patchwork.openembedded.org/patch/89779/
&gt; 
&gt; applied

It still fails. The failures aren&apos;t related to ACL entries. It seems to be because systemd-tmpfiles doesn&apos;t actually honor ordering in files and so /var/volatile/tmp doesn&apos;t exist when systemd-tmpfiles tries to create /var/tmp.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49474</commentid>
    <comment_count>4</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2015-03-16 18:18:43 +0000</bug_when>
    <thetext>This is fixed with change:

commit 1662423b8a8dc4907638a5717720d2911363e71a
Author: Randy Witt &lt;randy.e.witt@linux.intel.com&gt;
Date:   Wed Mar 4 19:01:05 2015 -0800</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49840</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-03-27 06:24:39 +0000</bug_when>
    <thetext>Costin, can you verify this?
Also, do we need a TC to make sure this doesn&apos;t happen again?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49902</commentid>
    <comment_count>6</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-03-30 10:53:51 +0000</bug_when>
    <thetext>Hello,

I checked on master by building a core-image-minimal for qemux86.
The hash  i used was 5c76cebc24675edb3dff473fce9b67cedff615db from master.

The test case that this bug is addressed to is TC550 (https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=550). This test case is confusing because the expected results should be: &quot;2. All failed service should be listed.&quot;. However, the runtime test verifies if the string match = re.search(&quot;0 loaded units listed&quot;, output) is present in the output of command systemctl --faied (poky/meta/lib/oeqa/runtime/systemd.py). I believe this is not in accordance with what the test case is intended for &quot;systemd - check failed services&quot;.

After running the resulted image for qemux86, my findings were:
root@qemux86:~# systemctl --failed | grep &quot;loaded units listed&quot;
1 loaded units listed. Pass --all to see loaded but inactive units, too.
meaning the auto test will fail. 

As a conclusion, i don&apos;t know if this test is intended to see if all services were loaded and there is no service failed or it is intended to see that systemctl --failed returns the components that failed to load.

Costin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54135</commentid>
    <comment_count>7</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-09-16 07:24:37 +0000</bug_when>
    <thetext>Hello,

I will mark this as verified. In my opinion the related TC550 needs a double check.
We&apos;ll do that separately</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>