[Bug 809420] New: sysctl --system is not run on boot
https://bugzilla.novell.com/show_bug.cgi?id=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c0 Summary: sysctl --system is not run on boot Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: fcrozat@suse.com ReportedBy: bwiedemann@suse.com QAContact: qa-bugs@suse.de CC: mvidner@suse.com Found By: --- Blocker: --- /boot/sysctl.conf-* values should be set on boot by sysctl --system /lib/systemd/system/systemd-sysctl.service calls /lib/systemd/systemd-sysctl which does not do this job -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c1 --- Comment #1 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-03-14 16:35:00 CET --- Steps To Reproduce: 1. boot with systemd 2. cat /proc/sys/kernel/shmmax Actual Results: contains a small value Expected results: should contain huge value 18446744073709551615 as is the case after calling sysctl --system manually Reproducible: Always -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c2 --- Comment #2 from Martin Vidner <mvidner@suse.com> 2013-03-14 17:02:48 CET --- A consequence of kernel.shmmax staying at 32MB is that postgresql will not start up. Also observed on 12.3 GM -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c3 --- Comment #3 from Frederic Crozat <fcrozat@suse.com> 2013-03-14 16:48:38 UTC --- paths expected for sysctl.service are (looking at the service file) ConditionPathExists=|/etc/sysctl.conf ConditionDirectoryNotEmpty=|/lib/sysctl.d ConditionDirectoryNotEmpty=|/usr/lib/sysctl.d ConditionDirectoryNotEmpty=|/usr/local/lib/sysctl.d ConditionDirectoryNotEmpty=|/etc/sysctl.d ConditionDirectoryNotEmpty=|/run/sysctl.d /boot/systctl* has never been part of those.. -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-03-15 07:47:56 CET --- it was used via /etc/init.d/boot.sysctl: /sbin/sysctl -e -q --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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c5 --- Comment #5 from Frederic Crozat <fcrozat@suse.com> 2013-03-15 08:33:06 UTC --- (In reply to comment #4)
it was used via /etc/init.d/boot.sysctl: /sbin/sysctl -e -q --system
but sysctl isn't used anymore, systemd-sysctl is now, and I'm not sure it is worth adding support for this (currently, it will follow what is descripted in man sysctld). -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c6 --- Comment #6 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-03-18 11:30:53 CET --- Then, what alternative do you propose to replace the lost functionality? -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c7 --- Comment #7 from Frederic Crozat <fcrozat@suse.com> 2013-03-18 10:37:41 UTC --- can't the file be moved to one of the other locations ? -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c8 Vincent Untz <vuntz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeffm@suse.com, | |vuntz@suse.com --- Comment #8 from Vincent Untz <vuntz@suse.com> 2013-03-29 10:29:31 UTC --- The issue is that the sysctl.conf-* files in /boot are specific to each kernel flavor, so we can't blindly have these files in a directory. This is the patch that adds support for that in the old sysctl: https://build.opensuse.org/package/view_file?expand=1&file=procps-v3.3.3-read-sysctls-also-from-boot-sysctl.conf-kernelversion.diff&package=procps&project=openSUSE%3AFactory The feature was added by Jeff: Thu May 5 17:49:30 CEST 2011 - jeffm@suse.de - boot.sysctl: Add support for loading defaults from /boot/sysctl.conf-$(uname -r) before loading /etc/sysctl.conf to allow each kernel flavor to adjust defaults without different kernel configuration options. So adding him in cc in case he might have opinions on this; there's probably a good reason this was added and if we need to keep supporting that with systemd, then we need to change something somewhere... -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c9 --- Comment #9 from Vincent Untz <vuntz@suse.com> 2013-03-29 10:45:55 UTC --- Btw, I guess a workaround could be to have a small service running before systemd-sysctl.service that would link /boot/sysctl.conf-`uname --kernel-version` to /run/sysctl.d/sysctl.conf-kernel-flavor. -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c10 Tony Su <tonysu@su-networking.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tonysu@su-networking.com --- Comment #10 from Tony Su <tonysu@su-networking.com> 2013-05-12 00:22:01 UTC --- Hello all, As resolving this issue is discussed, is there a recommended workaround today? I noticed that /etc/sysctl.conf was not being read starting with systemd version 195 (default openSUSE 12.3). Until now, the changes I was running in /etc/sysctl.conf were optional but today I have encountered a CRITICAL problem created by this bug... Without getting in detail (I'll be opening a separate bug), libvirt is configuring virtual network forwarding where it's not being read by systemd. The general solution is to edit /etc/sysconf if there is a problem and of course now that advice is invalid. Unfortunately, the MAN pages for systemd-sysconf.service are inadequate. They point to locations this new Unit reads, but they are empty and don't provide templates or guidance how to format. So, in other words there is now some urgency as systemd is removing and replacing subsystems, either backwards compatibility for /etc/sysctl.conf needs to be implemented (the topic of this bug) or the appropriate MAN pages improved or templates provided (probably for some other topic). Thx. -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c11 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|sysctl --system is not run |/boot/sysctl.conf-* not |on boot |applied on boot --- Comment #11 from Frederic Crozat <fcrozat@suse.com> 2013-05-14 12:40:00 UTC --- (In reply to comment #10)
Hello all, As resolving this issue is discussed, is there a recommended workaround today?
I noticed that /etc/sysctl.conf was not being read starting with systemd version 195 (default openSUSE 12.3). Until now, the changes I was running in /etc/sysctl.conf were optional but today I have encountered a CRITICAL problem created by this bug...
I think you are confusing things. /etc/sysctl.conf is read and applied by systemd-sysctl This bug is about /boot/sysctl.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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c12 --- Comment #12 from Tony Su <tonysu@su-networking.com> 2013-05-16 16:54:14 UTC --- Thx, Fredric for correcting my oversight. This bug got me curious, I have a number of kernels loaded on my machine at the moment (3.9x, 3.8x, 3.7.10x) and when I inspect the /boot/syxctl.conf-* files they all contain the exact same parameters. So although I can understand being cautious, at least on my machine they're all the same. Would be interesting if it's common to write kernel-specific parameters or if it's not current practice. Some Googling suggests that the OP's example actually can be implemented without problem in the more(?) commonly configured /etc/sysctl.conf which should be read by systemd-sysctl.service (which isn't on my machine, but that's another issue). -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c13 --- Comment #13 from Vincent Untz <vuntz@suse.com> 2013-05-16 17:14:12 UTC --- Tony: I assume the goal is not to have different sysctl.conf files for different versions of the kernel, but for different flavors (default, desktop, xen, etc.). That's why this comes on top of /etc/sysctl.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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c14 --- Comment #14 from Jeff Mahoney <jeffm@suse.com> 2013-05-16 13:21:23 EDT --- Yes, /boot/sysctl.conf-* are for adding flavor-specific configuration options. In an ideal world, we'd be able to ship just one kernel and the flavors would just load the different sysctl.conf files for the desired behavior. That goal is a long way off, though. -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c15 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #15 from Frederic Crozat <fcrozat@suse.com> 2013-05-17 12:24:11 UTC --- fixed in sr 175971 for Factory. Not sure it is worth backporting for 12.3 or 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c16 --- Comment #16 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-05-17 18:00:21 CEST --- This is an autogenerated message for OBS integration: This bug (809420) was mentioned in https://build.opensuse.org/request/show/176000 Factory / 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.
https://bugzilla.novell.com/show_bug.cgi?id=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c17 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #17 from Frederic Crozat <fcrozat@suse.com> 2013-06-12 11:00:40 UTC --- backporting patch for 12.3 -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c18 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO InfoProvider| |maintenance@opensuse.org --- Comment #18 from Frederic Crozat <fcrozat@suse.com> 2013-06-12 11:01:20 UTC --- requesting maintenance update for 12.3: mr#178808 -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c19 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED InfoProvider|maintenance@opensuse.org | --- Comment #19 from Benjamin Brunner <bbrunner@suse.com> 2013-06-13 05:35:57 CEST --- Update started for 12.3 (openSUSE:Maintenance:1776). Thanks for your submission. -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c20 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #20 from Benjamin Brunner <bbrunner@suse.com> 2013-06-20 09:09:03 CEST --- Update released for openSUSE 12.3. Resolved fixed. -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c21 --- Comment #21 from Swamp Workflow Management <swamp@suse.de> 2013-06-20 08:06:03 UTC --- openSUSE-RU-2013:1057-1: An update that has four recommended fixes can now be installed. Category: recommended (moderate) Bug References: 808144,808319,809420,820454 CVE References: Sources used: openSUSE 12.3 (src): systemd-195-13.29.1, systemd-mini-195-13.29.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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c22 Daniel Harnett <daniel.harnett@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.harnett@gmail.com --- Comment #22 from Daniel Harnett <daniel.harnett@gmail.com> 2013-09-17 18:28:02 UTC --- (In reply to comment #0)
/boot/sysctl.conf-* values should be set on boot by sysctl --system
/lib/systemd/system/systemd-sysctl.service calls /lib/systemd/systemd-sysctl which does not do this job
I am still running into this problem after applying openSUSE-RU-2013:1057-1. The system was installed on a LVM volume, which caused /boot to be created in a separate partition. When systemd-sysctl runs, /boot hasn't been mounted, yet. Adding the following to the unit configuration resolves the issue for me. RequiresMountsFor=/boot -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c23 Daniel Harnett <daniel.harnett@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | AssignedTo|fcrozat@suse.com |bnc-team-screening@forge.pr | |ovo.novell.com --- Comment #23 from Daniel Harnett <daniel.harnett@gmail.com> 2013-09-17 18:30:57 UTC --- Re-opened -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c24 Vincent Untz <vuntz@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |fcrozat@suse.com |ovo.novell.com | --- Comment #24 from Vincent Untz <vuntz@suse.com> 2013-09-17 20:50:20 UTC --- (reassigning to Fred, this got lost during the reopen) -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c25 --- Comment #25 from Frederic Crozat <fcrozat@suse.com> 2013-09-18 07:56:13 UTC --- (In reply to comment #22)
(In reply to comment #0)
/boot/sysctl.conf-* values should be set on boot by sysctl --system
/lib/systemd/system/systemd-sysctl.service calls /lib/systemd/systemd-sysctl which does not do this job
I am still running into this problem after applying openSUSE-RU-2013:1057-1. The system was installed on a LVM volume, which caused /boot to be created in a separate partition. When systemd-sysctl runs, /boot hasn't been mounted, yet. Adding the following to the unit configuration resolves the issue for me.
RequiresMountsFor=/boot
Could you open a separate bug report for this, it will be easier to track. Thanks -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c26 --- Comment #26 from Frederic Crozat <fcrozat@suse.com> 2013-09-18 10:51:00 UTC --- (In reply to comment #25)
Could you open a separate bug report for this, it will be easier to track.
I retract that request, since the issue was introduced by the fix for this particular bug. -- 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=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c27 --- Comment #27 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-09-19 02:00:13 CEST --- This is an autogenerated message for OBS integration: This bug (809420) was mentioned in https://build.opensuse.org/request/show/199671 Factory / 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.
https://bugzilla.novell.com/show_bug.cgi?id=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#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.
https://bugzilla.novell.com/show_bug.cgi?id=809420 https://bugzilla.novell.com/show_bug.cgi?id=809420#c28 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX --- Comment #28 from Dr. Werner Fink <werner@suse.com> 2014-05-05 08:16:15 UTC --- openSUSE 12.2 has already reached support life time. It is likly that this problem is already fixed in a later version. -- 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