Bug 1028687

Summary: systemctl is-enabled does not work for template instances
Product: [Fedora] Fedora Reporter: Andrew J. Schorr <aschorr>
Component: systemdAssignee: systemd-maint
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dwinter_nospam, johannbg, lnykryn, msekleta, plautrba, systemd-maint, vpavlin, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-204-20.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-08 08:40:53 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 Andrew J. Schorr 2013-11-09 15:16:23 UTC
Description of problem: If I enable an instance of a template, systemctl is-enabled should report that the instance is enabled.  But it does not.


Version-Release number of selected component (if applicable):
systemd-204-17.fc19.x86_64


How reproducible:
[root@ti19 ~]# systemctl enable openvpn
ln -s '/usr/lib/systemd/system/openvpn@.service' '/etc/systemd/system/multi-user.target.wants/openvpn'
[root@ti19 ~]# systemctl is-enabled openvpn && echo YES
Failed to issue method call: No such file or directory
[root@ti19 ~]# systemctl is-enabled openvpn@.service && echo YES
enabled
YES




Steps to Reproduce:
1. systemctl enable openvpn
2. systemctl is-enabled openvpn
3.

Actual results:
Failed to issue method call: No such file or directory



Expected results:
enabled


Additional info:

Comment 1 Zbigniew Jędrzejewski-Szmek 2013-12-27 05:39:31 UTC
http://cgit.freedesktop.org/systemd/systemd/commit/?id=67820a0cbdc

Comment 2 Fedora Update System 2014-07-23 03:55:15 UTC
systemd-204-20.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/systemd-204-20.fc19

Comment 3 Fedora Update System 2014-07-24 03:21:15 UTC
Package systemd-204-20.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing systemd-204-20.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-8761/systemd-204-20.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-08-08 08:40:53 UTC
systemd-204-20.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Daniel Winter 2014-08-13 16:31:33 UTC
Hi

With systemd-204-20.fc19 systemctl is-enabled seems not to work:

1. systemctl disable sssd

2. systemctl is-enabled sssd
enabled

3. systemctl enable sssd

4. systemctl is-enabled sssd
enabled

This seems to break our config management tool using is-enabled.

Best,
Daniel