Bug 1268601 - systemctl shows the full cgroup hierarchy when doing status of a disabled or non-existing unit
Summary: systemctl shows the full cgroup hierarchy when doing status of a disabled or ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Synacek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-03 12:39 UTC by Juan Orti
Modified: 2015-10-09 06:15 UTC (History)
7 users (show)

Fixed In Version: systemd-222-7.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-09 06:15:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Juan Orti 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.


Note You need to log in before you can comment on or make changes to this bug.