[Bug 434575] New: NetworkManager doesn't write /etc/resolv.conf
https://bugzilla.novell.com/show_bug.cgi?id=434575 Summary: NetworkManager doesn't write /etc/resolv.conf Product: openSUSE 11.1 Version: Factory Platform: i586 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ben.kevan@gmail.com QAContact: qa@suse.de Found By: Beta-Customer NetworkManager leaves /etc/resolv.conf empty on all settings in Network Settings via YaST. I've trued "Use Default Policy", "Use Custom Policy - Auto", and "Only Manually". It never wrote anything to /etc/resolv.conf, thus my network connection did not work until I manually entered. -- 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=434575
Stephan Binner
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c1
--- Comment #1 from Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c2
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c3
--- Comment #3 from Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c4
--- Comment #4 from Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c5
Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c6
--- Comment #6 from Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c7
Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User stbinner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c8
Stephan Binner
even though I get dhcp addresses, dns is not written to /etc/resolv.conf
How is this bug solved? I encounter the same on an installed Beta 3 Live-CD. -- 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=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c9
--- Comment #9 from Ben Kevan
even though I get dhcp addresses, dns is not written to /etc/resolv.conf
How is this bug solved? I encounter the same on an installed Beta 3 Live-CD.
Stephan, I feel your pain. What I had to do to get it to work was actually KILL the /etc/resolv.conf and restart the network daemon. Only after this did NetworkManager write to /etc/resolv.conf (do I agree with it? Hell no). I obviously want to do more testing.. IE: change to ifup modify manually /etc/resolv.conf change back to networkmanager see what I get in /etc/resolv.conf, see if dhcp takes over and adds the correct nameservers and search suffixes. More tests also should be done with how netconfig works, and if netconfig doesn't work with what YaST has configured when NetworkManager is set then it should be a disabled field (should be easy enough). I still have not found a way to set static nameservers or search suffixes to be written to resolv.conf (as I did previously with netconfig). Using network manager to make everything static is obviously not a comparible "feature". -- 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=434575
User jpr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c10
JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=434575
User jpr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c11
--- Comment #11 from JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=434575
User jpr@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c12
--- Comment #12 from JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c13
Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c14
Marius Tomaschewski
Forgot to reopen..
But what I seem to see is that netconfig doesn't set the settings as it should.
ll /etc/resolv.conf* -rw-r--r-- 1 root root 148 2008-10-13 09:56 /etc/resolv.conf -rw-r--r-- 1 root root 795 2008-10-13 07:53 /etc/resolv.conf.netconfig
Attached is my /etc/sysconfig/network/config
This was an upgrade from 11.0 to 11.1 Beta 2
This is the reason why you still have problems. See bellow. I reassign this bug to me because of this fact (and because netconfig writes the file now, not NetworkManager) and increase the severity to critical.
On another machine I have all is working as it should, but not on this one.
I'd say, because it was a either a fresh install or there was no resolv.conf (or it was empty)... But lets start from begining. * Before 11.1: There was /sbin/modify_resolvconf, the MODIFY_RESOLV_CONF_DYNAMICALLY sysconfig/network/config variable (+ one special for dhcp too) and there were programs _modifying the resolv.conf themself and ignoring both the variable and the script. As result, the programs was overwriting the settings of each and also settings manual added by the user. * On 11.0: We've implemented the netconfig scripts and policy variables allowing to disable netconfig, specify to use only static values, ... Not only NetworkManager but also all another programs have to use it. Netconfig does not overwrite any user modified non-empty config files. Because NetworkManager requires to maintain an own update policy to work correctly, it is allowed to provide the NetworkManager-policy merged settings to netconfig using a special way and netconfig will use it without further merges. If NetworkManager reads and uses the NETCONFIG_DNS_STATIC_* variables or not, it is completely up to the NetworkManager policy (IMO it shold use them at least as defaults for statically configured interfaces in the GUI). All this is only valid when NETCONFIG_DNS_POLICY is set to 'auto' to allow the user to override it. * Migration from old versions: The sysconfig package (that provides netconfig), currently does NOT include migration hooks due to work load on another bugs. They will be added to sysconfig after Beta3 is done to not to break it. This means the migration will be included with Beta4 packages. I'll provide test packages including the migration hooks and post an Url to them here as soon as I've finished to work on them and they work for me. -- 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=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c15
--- Comment #15 from Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c16
--- Comment #16 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c17
--- Comment #17 from Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User bjohnson@blakeanthonyjohnson.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c18
Blake Johnson
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c19
Marius Tomaschewski
debug: Use NetworkManager policy merged settings
See also comment #14 and comment #2 from Tambet Ingo:
NetworkManager in 11.1 does not use yast settings anymore. Use the connection editor from (k)nm to define your network settings.
Now you have the choice to: - change the NETCONFIG_DNS_POLICY to something else than "auto" - use NM connection editor to define static settings The current sysconfig package provides hooks to migrate modify_resolvconf and its variables to netconfig as good as reasonable and possible. It does not change the new behavior of the NetworkManager to not to read and merge the NM settings with the static yast2 / sysconfig settings (NETCONFIG_DNS_STATIC_SERVERS/NETCONFIG_DNS_STATIC_SEARCHLIST). When the migration hooks or netconfig with NETCONFIG_DNS_POLICY=!auto does not work correctly, please report as a new bug report. I consider the migration issue as fixed now and the NetworkManager part of this bug as INVALID or WONTFIX (see also comment #2 and #14). -- 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=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c20
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c21
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=434575
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c22
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c23
--- Comment #23 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c24
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=434575
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c25
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c26
--- Comment #26 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=434575
User ben.kevan@gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c27
--- Comment #27 from Ben Kevan
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c28
--- Comment #28 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=434575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c29
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=434575
User stbinner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c30
Stephan Binner
https://bugzilla.novell.com/show_bug.cgi?id=434575
User stbinner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=434575#c31
Stephan Binner
participants (1)
-
bugzilla_noreply@novell.com