Bug 1268601

Summary: systemctl shows the full cgroup hierarchy when doing status of a disabled or non-existing unit
Product: [Fedora] Fedora Reporter: Juan Orti Alcaine <jorti>
Component: systemdAssignee: Jan Synacek <jsynacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: johannbg, jsynacek, lnykryn, msekleta, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-222-7.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-09 06:15:05 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Juan Orti Alcaine 2015-10-03 12:39:51 UTC
Description of problem:
When I do "systemctl status" of a disabled or non-existing unit, All the cgroup hierarchy is printed. This behavior was not present before.

Version-Release number of selected component (if applicable):
systemd-222-6.fc23.x86_64

How reproducible:
Always

Steps to Reproduce:
1. systemctl disable foo.service
2. systemctl stop foo.service
3. systemctl status foo.service


Actual results:

[root@xenon ~]# systemctl disable smb.service
Removed symlink /etc/systemd/system/multi-user.target.wants/smb.service.

[root@xenon ~]# systemctl stop smb.service

[root@xenon ~]# systemctl status smb.service

● smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
   CGroup: 
           ├─1 /usr/lib/systemd/systemd --switched-root --system --deserialize 21
           ├─system.slice
           │ ├─avahi-daemon.service
           │ │ ├─900 avahi-daemon: running [xenon.local]
           │ │ └─927 avahi-daemon: chroot helper
           │ ├─tor.service
           │ │ └─24138 /usr/bin/tor --runasdaemon 0 --defaults-torrc /usr/share/tor/defaults-torrc -f /etc/tor/torrc
           │ ├─dbus.service
           │ │ └─882 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
           │ ├─nmb.service
           │ │ └─812 /usr/sbin/nmbd
           │ ├─firewalld.service
           │ │ └─892 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid
           │ ├─ModemManager.service
           │ │ └─888 /usr/sbin/ModemManager
           │ ├─lvm2-lvmetad.service
           │ │ └─591 /usr/sbin/lvmetad -f
           │ ├─abrtd.service
           │ │ └─905 /usr/sbin/abrtd -d -s

[...]

Expected results:
Not all cgroup tree printed

Additional info:

Comment 2 Fedora Update System 2015-10-06 12:25:42 UTC
systemd-222-7.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-d48443ab35

Comment 3 Fedora Update System 2015-10-07 16:28:10 UTC
systemd-222-7.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
$ su -c 'dnf --enablerepo=updates-testing update systemd'
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-d48443ab35

Comment 4 Fedora Update System 2015-10-09 06:14:59 UTC
systemd-222-7.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.