[Bug 790424] New: NTP fails to insserv
https://bugzilla.novell.com/show_bug.cgi?id=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c0 Summary: NTP fails to insserv Classification: openSUSE Product: openSUSE Factory Version: 12.3 Milestone 1 Platform: All OS/Version: SUSE Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: werner@suse.com ReportedBy: bwiedemann@suse.com QAContact: qa-bugs@suse.de CC: coolo@suse.com, fcrozat@suse.com Found By: System Test Blocker: --- as found by openQA.o.o in current Factory during system installation ntp (and other services) fail to insserv because it relies on $remote_fs but boot.localfs was removed from aaa_base again after MS1 -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |bwiedemann@suse.com --- Comment #1 from Dr. Werner Fink <werner@suse.com> 2012-11-20 10:40:47 UTC --- Please would you retest with *latest* insserv. With this version the systemd target fsck-root.target is mapped to boot.rootfsck as well as localfs.target is mapped to boot.localfs and local-fs.target to $local_fs ... -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c2 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|bwiedemann@suse.com | --- Comment #2 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-11-20 13:42:07 CET --- Created an attachment (id=513798) --> (http://bugzilla.novell.com/attachment.cgi?id=513798) failure output with latest insserv This is from an install of openSUSE-GNOME-LiveCD-x86_64-Build0204 and there is only /usr/lib/systemd/system/localfs.service no other *localfs* file anywhere -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c3 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |bwiedemann@suse.com --- Comment #3 from Dr. Werner Fink <werner@suse.com> 2012-11-20 13:16:50 UTC --- The latest insserv as insserv ask systemd to get all services and targets ... please note that insserv skips .serivce as well as .target suffixes and map the results into the SysV name space (`<...>.target' -> `&<...>'). That is you're missing /lib/systemd/system/local-fs.target and/or /lib/systemd/system/localfs.service /* * Maps between systemd and SystemV */ static const char* sdmap[] = { "$local-fs", "$local_fs", "$remote-fs", "$remote_fs", "cryptsetup", "boot.crypto-early", "udev", "boot.udev", "multipathd", "boot.multipath", "loadmodules", "boot.loadmodules", "device-mapper", "boot.device-mapper", "sysctl", "boot.sysctl", "fsck-root", "boot.rootfsck", "localfs", "boot.localfs" }; You may check this with systemctl dot | less -S -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2012-11-20 13:20:15 UTC --- Where can I find the affected system -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c5 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|bwiedemann@suse.com |fcrozat@suse.com --- Comment #5 from Dr. Werner Fink <werner@suse.com> 2012-11-20 16:13:21 UTC --- This one is fixed by SR #142147 ... nevertheless the bug that in /usr/lib/systemd/system/localfs.service in the Unit section the line After=local-fs.target instead of Before=local-fs.target exists, compare with bnc #789421 ... after fixing this I see an other loop in the systemd setup: With `After' linux-k25u:/tmp/insserv # ./insserv ntp insserv: Loop detected during expanding system facilities in the insserv.conf file(s): systemd-remount-fs +boot.crypto With `Before' linux-k25u:/tmp/insserv # ./insserv ntp insserv: Loop detected during expanding system facilities in the insserv.conf file(s): systemd-fsck-root systemd-remount-fs ... please note that insserv expand the systemd targets from read from the dbus connection as well as the SvsV system facilities from the insserv.conf. -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c6 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|fcrozat@suse.com | --- Comment #6 from Frederic Crozat <fcrozat@suse.com> 2012-11-20 16:40:32 UTC --- I already gave the rationale for using After=local-fs.target in localfs.service in bnc#789421 Regarding boot.crypto, I ignore this dependency in systemd (when /etc/insserv.conf) since it is handled by systemd itself. I don't see a loop between systemd-fsck-root and systemd-remount-fs when considering systemd services. -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c7 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Dr. Werner Fink <werner@suse.com> 2012-11-21 13:10:17 UTC --- This one shold be foxed with SR #142249 as with this I alos have changed the systemd path from /lib/systemd/system/ to /usr/lib/systemd/system/ .... -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c8 --- Comment #8 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-11-21 15:00:34 CET --- This is an autogenerated message for OBS integration: This bug (790424) was mentioned in https://build.opensuse.org/request/show/142249 Factory / insserv -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c9 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #9 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-12-06 05:46:10 CET --- Bug is still there on current Factory. Just tried with LiveCD (but also occurs in DVD install) insserv ntp prints Loop detected during expanding system facilities in the insserv.conf file(s): +boot.crypto boot.localfs but sometimes complains about nfs and NetworkManager-wait-online insserv-1.16.0-5.1 contains last change from 2012-11-26 -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c10 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |bwiedemann@suse.com Severity|Major |Normal --- Comment #10 from Dr. Werner Fink <werner@suse.com> 2012-12-06 07:54:09 UTC --- Sorry but this I can not belive as I've work around and verified that the message Loop detected during expanding system facilities in the insserv.conf file(s): +boot.crypto boot.localfs will not occur. For this I've remapped the order of boot.localfs aka localfs.service and $local_fs aka local-fs.target to follow the systemd ordering. Beside this if there is problem between nfs and NetworkManager-wait-online then this problem is real and requires a new bug report. On the other hand as insserv does sometimes produce different messages in succession then this could be caused by the sysemd reload triggered by insserv. The question rises if such a systemd reload should be followed by a reread of the service order chain/tree? -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c11 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- InfoProvider|bwiedemann@suse.com |fcrozat@suse.com --- Comment #11 from Bernhard Wiedemann <bwiedemann@suse.com> 2012-12-06 09:00:03 CET --- Frederic, can you answer that? -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c12 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|fcrozat@suse.com | --- Comment #12 from Frederic Crozat <fcrozat@suse.com> 2012-12-06 10:43:06 UTC --- (In reply to comment #10)
The question rises if such a systemd reload should be followed by a reread of the service order chain/tree?
This is probably a good idea. -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c13 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |fcrozat@suse.com --- Comment #13 from Dr. Werner Fink <werner@suse.com> 2012-12-06 11:02:09 UTC --- (In reply to comment #12) Hmmm .. I do this but it looks like that I have to wait upto the point where systemd has finished its scan: if (reload) { systemd_daemon_reload(sbus); systemd_free(); systemd_get_tree(sbus); } ... how long does the reload take? Or how can I detect if the reload has finished? Does it require the close and reopen the dbus connection? -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c14 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|fcrozat@suse.com | --- Comment #14 from Frederic Crozat <fcrozat@suse.com> 2012-12-06 12:02:57 UTC --- according to systemd code, D-Bus reload call is returning after the reload is finished -- 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=790424 https://bugzilla.novell.com/show_bug.cgi?id=790424#c15 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #15 from Dr. Werner Fink <werner@suse.com> 2013-01-22 13:53:53 UTC --- The old insserv is not used anymore with systemd -- 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