Bug 724157

Summary: sssd not enabled after live installation
Product: [openSUSE] openSUSE 12.1 Reporter: Ralf Haferkamp <ralf>
Component: InstallationAssignee: Ralf Haferkamp <ralf>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: fcrozat, herbert
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: YaST logs after installation

Description Ralf Haferkamp 2011-10-14 10:05:37 UTC
Created attachment 456587 [details]
YaST logs after installation

When configuring LDAP authentication during installation of the live cd the sssd service is not enabled after rebooting the installed system:

linux-7uiv:~ # systemctl status sssd.service
sssd.service - System Security Services Daemon                                                        
          Loaded: loaded (/etc/systemd/system/sssd.service; disabled)                                 
          Active: inactive (dead)                                                                     
          CGroup: name=systemd:/system/sssd.service

Is this probably related to the fact that sssd ships with a systemd service file additionally to the init script?
Comment 1 Jiří Suchomel 2011-10-14 11:09:30 UTC
I have no idea, I assume YaST behavior should not change.

What commands are needed to enable the service now? Let's track them from the log (but I think there were called from Service.ycp)
Comment 2 Jiří Suchomel 2011-10-14 11:20:04 UTC
Frederic, do you have an idea of what could we done wrong?
Comment 3 Frederic Crozat 2011-10-14 11:27:06 UTC
since sssd is providing systemd service, it should follow the following systemd packaging guidelines :

-sssd systemd service should be installed in /lib/systemd/systemd (and not in /etc/systemd/systemd) and not be flagged as config file
- Add BuildRequires on systemd (for 12.1 or later) + 
%{?systemd_requires} to have the needed install dependencies
- use the following macros (you might want to use %suse_version to only use them on 12.1 or later)

%pre
%service_add_pre sssd.service

%post
%service_add_post sssd.service

%preun
%service_del_preun sssd.service

%postun
%service_del_postun sssd.service

if the service is supposed to be enabled at startup, I'll add it to systemd-preset (please confirm this).
Comment 4 Ralf Haferkamp 2011-10-14 11:43:52 UTC
Thanks for hinting me at systemd the packaging bugs in sssd. I didn't have time to follow the discussion on the opensuse list recently :(. I'll take a look at those.

But I somehow doubt that fixing those will fix the issue that YaST ldap-client has wrt. enabling the service. I'll check that, assigning the bug to myself for now.

BTW, sssd is NOT supposed to be enabled automatically after installation, so I think it does not need to be added to systemd-preset.
Comment 5 Ralf Haferkamp 2011-10-19 14:19:03 UTC
Fixing the above packaging bugs indeed seems to fix the problem with enabling sssd from yast2-ldap-client. 

SR#88733 contains the fixes.
Comment 6 Bernhard Wiedemann 2011-10-19 15:00:15 UTC
This is an autogenerated message for OBS integration:
This bug (724157) was mentioned in
https://build.opensuse.org/request/show/88734 Factory / sssd
Comment 7 Ralf Haferkamp 2011-10-31 10:18:24 UTC
*** Bug 726002 has been marked as a duplicate of this bug. ***
Comment 8 Bernhard Wiedemann 2017-12-01 15:41:12 UTC
This is an autogenerated message for OBS integration:
This bug (724157) was mentioned in
https://build.opensuse.org/request/show/547139 Factory / sssd