[Bug 544195] New: Both netconfig and NetworkManager generate /etc/resolv.conf

http://bugzilla.novell.com/show_bug.cgi?id=544195 Summary: Both netconfig and NetworkManager generate /etc/resolv.conf Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 8 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: aj@novell.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-119.3 Firefox/3.5.3 I have: l /etc/resolv.conf* -rw-r--r-- 1 root root 89 2009-10-04 17:18 /etc/resolv.conf -rw-r--r-- 1 root root 837 2009-10-04 17:18 /etc/resolv.conf.netconfig /var/log/messages contains: Oct 4 17:18:46 x61s-aj dns-resolver: ATTENTION: You have modified /etc/resolv.c onf. Leaving it untouched... Oct 4 17:18:46 x61s-aj dns-resolver: You can find my version in /etc/resolv.conf.netconfig IMO there should be only one file. Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 Andreas Jaeger <aj@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tambet@novell.com Found By|--- |Product Management AssignedTo|bnc-team-screening@forge.pr |mt@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User aj@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c1 --- Comment #1 from Andreas Jaeger <aj@novell.com> 2009-10-04 09:25:15 MDT --- Btw. contents of the files: $ cat /etc/resolv.conf # Generated by NetworkManager domain fritz.box search fritz.box nameserver 192.168.178.1 $ cat /etc/resolv.conf.netconfig ### /etc/resolv.conf file autogenerated by netconfig! # # Before you change this file manually, consider to define the # static DNS configuration using the following variables in the # /etc/sysconfig/network/config file: # NETCONFIG_DNS_STATIC_SEARCHLIST # NETCONFIG_DNS_STATIC_SERVERS # NETCONFIG_DNS_FORWARDER # or disable DNS configuration updates via netconfig by setting: # NETCONFIG_DNS_POLICY='' # # See also the netconfig(8) manual page and other documentation. # # Note: Manual change of this file disables netconfig too, but # may get lost when this file contains comments or empty lines # only, the netconfig settings are same with settings in this # file and in case of a "netconfig update -f" call. # ### Please remove (at least) this line when you modify the file! search fritz.box nameserver 192.168.178.1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c2 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |mt@novell.com Info Provider| |aj@novell.com AssignedTo|mt@novell.com |tambet@novell.com Severity|Normal |Major --- Comment #2 from Marius Tomaschewski <mt@novell.com> 2009-10-05 00:27:08 MDT --- NetworkManager should never write the /etc/resolv.conf itself but always use netconfig (severity++). Was this an update or a fresh installation? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User tambet@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c3 Tambet Ingo <tambet@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|aj@novell.com | --- Comment #3 from Tambet Ingo <tambet@novell.com> 2009-10-05 00:44:06 MDT --- I accidentally broke it - When netconfig doesn't exit successfully (doesn't return 0) NM now writes /etc/resolv.conf. That usually happens if you have manually changed /etc/resolv.conf and netconfig refuses to change it, as described in the comments. I'll revert that change. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |541717 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c4 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|tambet@novell.com |coolo@novell.com, | |milisav.radmanic@novell.com --- Comment #4 from Marius Tomaschewski <mt@novell.com> 2009-10-05 01:32:09 MDT --- This is a very bad idea to write it yourself when netconfig reports != 0. First, because you break netconfig, second, because you overwrite manual user setting. Complaining to the user would be much better here. See also feature #306274: Implement <dns|nis|ntp> filter for netconfig update and use it in yast2 it has been rejected for 11.2 because of not enough time/resources, but I'll implement it this week for SLE-11 SP1 anyway and if Stephan agrees, we can apply this change to 11.2, to improve this scenario. Basically, "netconfig update -m dns -f" will force DNS setting update. When "netconfig update" - or better "netconfig update -m dns" - fails, the GUI can inform the user about and ask if he/she wants to force to overwrite the current (manual) DNS settings. When the user gives his OK, the GUI can call the above command incl. -f. Currently, the way to go would be e.g.: cp /dev/null /etc/resolv.conf ; netconfig update but it does not work properly e.g. in NETCONFIG_DNS_FORWARDER=bind or dnsmasq mode, because the resolv.conf is not the only file written then... So at the moment the GUI can only use "netconfig update -f", what may throw away e.g. user's manually configured NIS settings... Added Stephan to Cc. Tamber, please set NEEDINFO to Stephan when this feature would be helpful here. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c5 --- Comment #5 from Marius Tomaschewski <mt@novell.com> 2009-10-05 01:39:32 MDT --- See also: https://bugzilla.novell.com/show_bug.cgi?id=541717#c11 here NM wrote an empty resolv.conf with a NM comment only :-/ -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c6 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |casualprogrammer@gmail.com --- Comment #6 from Marius Tomaschewski <mt@novell.com> 2009-10-05 01:40:29 MDT --- *** Bug 541717 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=541717 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User tambet@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c7 Tambet Ingo <tambet@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Tambet Ingo <tambet@novell.com> 2009-10-05 02:59:41 MDT --- Fixed. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User rajko@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c8 Rajko Matovic <rajko@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremy@bicha.net --- Comment #8 from Rajko Matovic <rajko@opensuse.org> 2009-10-10 05:10:08 MDT --- *** Bug 545978 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=545978 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User rajko@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c9 Rajko Matovic <rajko@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rajko@opensuse.org --- Comment #9 from Rajko Matovic <rajko@opensuse.org> 2009-10-10 05:29:19 MDT --- Problem with loosing user settings can be worked around if netconfig creates backup of resolv.conf before writing new, so that user can combine both. Not a solution, but better then starting from scratch. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c10 --- Comment #10 from Marius Tomaschewski <mt@novell.com> 2009-10-12 06:43:00 MDT --- (In reply to comment #9)
Problem with loosing user settings can be worked around if netconfig creates backup of resolv.conf before writing new, so that user can combine both. Not a solution, but better then starting from scratch.
This bug was not about loosing user settings because netconfig would overwrite it, but about NM writing the resolv.conf directly without to use netconfig and ignoring the (user) policy for resolv.conf updates. Netconfig does not overwrite any user settings /etc/resolv.conf, there is no work around/backup needed. It generates resolv.conf.netconfig in such cases. Generally, user settings should go to the yast2 network module and then to network/config or NetworkManager GUI to some place where NM stores them. The backup of all sysconfig files is created at /var/adm/backup/sysconfig. Alternatively, the user can set NETCONFIG_DNS_POLICY='' and maintain the resolv.conf and related files himself. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User delder@novacoast.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c11 Dan Elder <delder@novacoast.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |delder@novacoast.com Version|Milestone 8 |RC 1 Resolution|FIXED | --- Comment #11 from Dan Elder <delder@novacoast.com> 2009-10-15 12:17:35 MDT --- I hadn't had this problem before in any of the milestones but I'm seeing it now in RC1. Should this be fixed in RC1 or is it still upstream? I'm getting the empty /etc/resolv.conf but /etc/resolv.conf.netconfig has the correct settings problem. I apologize if I'm re-opening it if it's not fixed yet in RC1 but it looked like it was fixed on 10/5 and somehow made its way into RC1. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User tambet@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c12 Tambet Ingo <tambet@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO Info Provider| |delder@novacoast.com --- Comment #12 from Tambet Ingo <tambet@novell.com> 2009-10-16 00:41:49 MDT --- Did you upgrade to RC1 or did you perform a clean install? The problem with upgrading is that you have the /etc/resolv.conf created by NetworkManager and netconfig refuses to touch it. This problem existed only in one milestone and won't affect people who will upgrade from 11.1 to 11.2. This problem can be fixed by running 'sudo /sbin/netconfig update -f' once. Can you confirm this fixes your problem? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User casualprogrammer@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c13 --- Comment #13 from Casual J. Programmer <casualprogrammer@gmail.com> 2009-10-16 01:24:12 MDT --- Just to let you know: After upgrading (zypper dup) from M8 to RC1 the problem is gone for me. Switching between NetworkManager and ifup does no longer require restoration of resolv.conf. Fix from #12 not required (for me). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User mvidner@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c14 --- Comment #14 from Martin Vidner <mvidner@novell.com> 2009-10-16 02:35:23 MDT --- (In reply to comment #12) Marius, the man page for netconfig does not mention resolv.conf.netconfig. How about adding a note like: "In some cases, netconfig will not overwrite foo.conf and will save the data to foo.conf.netconfig instead. Use netconfig update -f to overwrite foo.conf." (FIXME: would simply "mv foo.conf.netconfig foo.conf" work? If not, why?) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User delder@novacoast.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c15 Dan Elder <delder@novacoast.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |REOPENED Info Provider|delder@novacoast.com | --- Comment #15 from Dan Elder <delder@novacoast.com> 2009-10-16 08:59:32 MDT --- I upgraded (zypper dup) from M8 to RC1 but never had the problem in M8. netconfig update -f (or just manually mv /etc/resolv.conf.netconfig /etc/resolv.conf) does resolve the problem, everything works fine now. I apologize for not testing with a clean install, I just noticed other people were having the same problem with RC1 and wanted to make sure it wouldn't be an issue in GMC. Many thanks :) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User binner@kde.org added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c16 Stephan Binner <binner@kde.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |binner@kde.org --- Comment #16 from Stephan Binner <binner@kde.org> 2009-10-18 03:13:20 MDT --- How does the REOPEN reason differ from bug 546213? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User casualprogrammer@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c17 --- Comment #17 from Casual J. Programmer <casualprogrammer@gmail.com> 2009-10-18 05:09:57 MDT --- Stephan, as far as my judgment goes, the two are covering the same issue, maybe one should be marked as duplicate of the other. Also I fail to see why 546213 should be marked critical. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User rajko@opensuse.org added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c18 --- Comment #18 from Rajko Matovic <rajko@opensuse.org> 2009-10-18 07:16:03 MDT --- It is not the same issue. This one was about NetworkManager writing /etc/resolv.conf which goes against policy to use netconfig. The other 546213 is about NetworkManager update not taking care of the problem created with this bug. NM version of /etc/resolv.conf was still in place and netconfig refused to change it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User tambet@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c19 Tambet Ingo <tambet@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED --- Comment #19 from Tambet Ingo <tambet@novell.com> 2009-10-19 01:12:51 MDT --- Agreed, this bug is about NM changing resolv.conf directly and this has been fixed. Closing the bug again. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c20 --- Comment #20 from Marius Tomaschewski <mt@novell.com> 2009-10-26 09:15:11 MDT --- (In reply to comment #14)
(In reply to comment #12)
Marius, the man page for netconfig does not mention resolv.conf.netconfig. How about adding a note like:
"In some cases, netconfig will not overwrite foo.conf and will save the data to foo.conf.netconfig instead. Use netconfig update -f to overwrite foo.conf." (FIXME: would simply "mv foo.conf.netconfig foo.conf" work? If not, why?)
Yes, it should be added to the man page. Yes, basically the "mv foo.conf.netconfig foo.conf" just works. Problem is to know which "foo" :-) In case of DNS, this could be the /etc/resolv.conf or /etc/resolv.conf and /etc/named.d/forwarders.conf. So "netconfig update -f" is the better. The feature #306274 (comment #4) will allow to select/filter the operation scope by (module name or) module group basis: netconfig update -m dns -f will "make the mv" for all currently required files without to touch e.g. NIS where the user maybe wants to keep his manual adjustments. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=544195#c21 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david.maillists@gmail.com --- Comment #21 from Marius Tomaschewski <mt@novell.com> 2009-11-02 04:14:32 MST --- *** Bug 544528 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=544528 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 http://bugzilla.novell.com/show_bug.cgi?id=544195#c22 andrea florio <andrea@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |andrea@opensuse.org Resolution|FIXED | --- Comment #22 from andrea florio <andrea@opensuse.org> 2010-06-01 11:46:27 UTC --- this bug exist again in 11.3 m7 (and i can confirm since m3 or 4) exactly as on Comment 1 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 http://bugzilla.novell.com/show_bug.cgi?id=544195#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |bili@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 http://bugzilla.novell.com/show_bug.cgi?id=544195#c24 Li Bin <bili@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #24 from Li Bin <bili@novell.com> 2010-06-03 03:06:58 UTC --- It's not in M7 yet, I've wrote the patch for it, and I'll submit it later with other bugs. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 http://bugzilla.novell.com/show_bug.cgi?id=544195#c25 Li Bin <bili@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #25 from Li Bin <bili@novell.com> 2010-06-09 11:26:16 UTC --- Done. 41285 State:new By:BinLi When:2010-06-09T13:24:44 submit: home:BinLi:branches:GNOME:Factory/NetworkManager -> GNOME:Factory Descr: NIS support and update resolv.conf once(bnc#608677, bnc#595708, bnc#544195, bnc#537907) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.

http://bugzilla.novell.com/show_bug.cgi?id=544195 http://bugzilla.novell.com/show_bug.cgi?id=544195#c26 --- Comment #26 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (544195) was mentioned in https://build.opensuse.org/request/show/42233 11.3 / NetworkManager -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com