[Bug 777418] New: ldap.service file missing
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c0 Summary: ldap.service file missing Classification: openSUSE Product: openSUSE 12.2 Version: RC 2 Platform: x86 OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jkuittinen293482@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1226.0 Safari/537.4 SUSE/22.0.1226.0 The openldap2 server package is missing a .service file or is failing to generate one. In addition, the old startup script redirects to the currently systemd control method. Reproducible: Always Steps to Reproduce: 1. install ldap server 2. enable and configure ldap server in yast2 or use systemctl start ldap.service 3. Actual Results: Failed to issue method call: Unit ldap.service failed to load: No such file or directory. See system logs and 'systemctl status ldap.service' for details. Also missing in 12.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|bnc-team-screening@forge.pr |rhafer@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c1 Ralf Haferkamp <rhafer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rhafer@suse.com AssignedTo|rhafer@suse.com |fcrozat@suse.com --- Comment #1 from Ralf Haferkamp <rhafer@suse.com> 2012-09-12 13:55:43 CEST --- The ldap init script didn't change between 12.1 and 12.2 and everything was working as expected on 12.1 (independed of wether sysvinit of systemd was used). So I suspect this is a systemd issue. -> reassigning to systemd maintainer @Jari: There is nothing in the ldap initscript redirecting to systemd this must be some other magic. Calling "/./etc/init.d/ldap start" on the command line (note the "/./") seem to circumvent that magic btw. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c2 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jkuittinen293482@gmail.com --- Comment #2 from Frederic Crozat <fcrozat@suse.com> 2012-09-18 12:03:18 UTC --- does it work if you run "systemctl daemon-reload" after installing ldap server package (but before starting YaST or systemctl start ldap.service) ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c3 Michel Veltman <mike.veltman@draconis-it.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mike.veltman@draconis-it.co | |m --- Comment #3 from Michel Veltman <mike.veltman@draconis-it.com> 2012-11-08 08:35:23 UTC --- I did test it with systemctl daemon-reload after installing the server and after that systemctl start ldap.service (fresh install openldap2) and then it worked. First start it gave the error as described. My suggestion would be to add something like a systemctl daemon-reload to the rpm (if systemd is used). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c4 --- Comment #4 from Michel Veltman <mike.veltman@draconis-it.com> 2012-11-08 08:36:42 UTC --- Additional remark: I got the error in the latest version of 12.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c5 Ralf Haferkamp <rhafer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|jkuittinen293482@gmail.com | --- Comment #5 from Ralf Haferkamp <rhafer@suse.com> 2012-11-15 12:20:59 CET --- Removing NEEDINFO flag, as the comment#3 provided the requested info. @frederic: So what's the right way to handle this? Is there a macro I have to call in %post that does the required systemctl daemon-reload? I always thought the %service_add_post stuff is only required for services that actually ship with systemd unit files. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c6 Ralf Haferkamp <rhafer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jsuchome@suse.com --- Comment #6 from Ralf Haferkamp <rhafer@suse.com> 2012-11-15 12:22:51 CET --- *** Bug 786273 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=786273 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c7 --- Comment #7 from Frederic Crozat <fcrozat@suse.com> 2012-11-15 15:40:15 UTC --- (In reply to comment #5)
Removing NEEDINFO flag, as the comment#3 provided the requested info.
@frederic: So what's the right way to handle this? Is there a macro I have to call in %post that does the required systemctl daemon-reload? I always thought the %service_add_post stuff is only required for services that actually ship with systemd unit files.
as I wrote in another bug report, we have an issue with the "initscript" macros not calling systemd daemon-reload when package is just installed. And fixing those macros is too late for 12.2, since it won't fix packages already shipping with those macros built-in. So, an interim solution would be to call systemd daemon-reload in %post of those package (or have file triggers in rpm, but it is not here yet). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c8 Ralf Haferkamp <rhafer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Basesystem |Basesystem Version|RC 2 |12.3 Milestone 1 AssignedTo|fcrozat@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 12.2 |openSUSE Factory --- Comment #8 from Ralf Haferkamp <rhafer@suse.com> 2012-11-16 10:00:47 CET --- (In reply to comment #7)
as I wrote in another bug report, we have an issue with the "initscript" macros not calling systemd daemon-reload when package is just installed. And fixing those macros is too late for 12.2, since it won't fix packages already shipping with those macros built-in. It seems it's not even fixed in Factory currently. At least with the Milestone1 it fails exactly as on 12.2 (hence moving this bug to factory).
The only (non-systemd) rpm-macro that calls systemctl daemon-reload currently is %restart_on_update, but that's usually called in %postun which of course is not executed when installing a new package. I'd expect the %insserv macros to handle this (or even /sbin/insserv itself). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c9 Ralf Haferkamp <rhafer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |darin@darins.net --- Comment #9 from Ralf Haferkamp <rhafer@suse.com> 2012-11-16 10:05:23 CET --- *** Bug 781342 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=781342 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c10 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO CC| |fcrozat@suse.com, | |werner@suse.com InfoProvider| |werner@suse.com --- Comment #10 from Frederic Crozat <fcrozat@suse.com> 2012-11-16 09:12:48 UTC --- Doing it in inssev would be simplier but it could call systemctl daemon-reload (or the dbus api) too often. Werner, WDYT ? Would it be ok to add such call to insserv (when running under systemd) or do you prefer I modify %insserv macros ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c11 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|werner@suse.com | --- Comment #11 from Dr. Werner Fink <werner@suse.com> 2012-11-16 09:44:08 UTC --- Hmmm ... insserv does calculate with the help of some graph theory the final dependency chains and write them out as makefiles together with installing the start/stop links for the services (hence the name insserv). It was never written to (re)start or reload a service. In past for this we had some other macros like %restart_on_update() and %stop_on_removal() for single services but not for restarting the service chains ... the question may rises how we use systemctl instead executing the SysVinit boot scripts. This because it could be required to ask the service its self with the help of systemctl what options are supported (reload, restart, try-restart, reload-or-restart, reload-or-try-restart) or required to enable the new configuration (daemon-reload). Btw: What are the side effect of a daemon-reload? As this recalculate the final dependency chains this may cause some side effects as restarting some serives (e.g. users may loose their X session, network connections, ...). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c12 --- Comment #12 from Frederic Crozat <fcrozat@suse.com> 2012-11-16 10:05:55 UTC --- daemon-reload is a requirement for systemd, otherwise it won't notice new initscript installed (and as you noted, using systemctl instead of direct sysvinit boot script would break). daemon-reload will not cause any side effect on running services (including some which might have their .service file disappear will continue running and calling systemctl status/start/stop will continue to work on them) nor sockets opened to listen on behalf of user config. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c13 --- Comment #13 from Dr. Werner Fink <werner@suse.com> 2012-11-16 10:14:50 UTC --- (In reply to comment #12) Ok ... then it makes sense to do this in insserv as well if a systemd is found and a dbus connection was established. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c14 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |fcrozat@suse.com --- Comment #14 from Dr. Werner Fink <werner@suse.com> 2012-11-16 14:03:19 UTC --- See SR #141564 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c15 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|fcrozat@suse.com | --- Comment #15 from Frederic Crozat <fcrozat@suse.com> 2012-11-16 14:33:20 UTC --- systemd_daemon_reload should be called before the first forward_to_systemd calls, so at line 2933 (in the if (!alternative_root) action) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c16 --- Comment #16 from Dr. Werner Fink <werner@suse.com> 2012-11-16 14:50:41 UTC --- Ok ... hopefully it is OK to ask the systemd it the relaod is required, see SR #141567 ... with this it may happen twice. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c17 --- Comment #17 from Frederic Crozat <fcrozat@suse.com> 2012-11-16 15:04:09 UTC --- checking NeedDaemonReload should be ok. You might want to set a "global" flag to not do the reload twice but it isn't really a problem to do it several times. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c Jiaying ren <jren@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jren@suse.com AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c Ralf Haferkamp <rhafer@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|ldap.service file missing |inserv (or %inserv macros) | |should call systemctl | |daemon-reload -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c18 Peter Varkoly <varkoly@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |varkoly@suse.com --- Comment #18 from Peter Varkoly <varkoly@suse.com> 2013-03-21 12:07:16 UTC --- *** Bug 807451 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=807451 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=777418 https://bugzilla.novell.com/show_bug.cgi?id=777418#c Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|fcrozat@suse.com |systemd-maintainers@suse.de -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com