[Bug 1047004] New: NetworkManager doesn't write DNS servers to /etc/resolv.conf
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004 Bug ID: 1047004 Summary: NetworkManager doesn't write DNS servers to /etc/resolv.conf Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: SUSE Other Status: NEW Severity: Major Priority: P5 - None Component: Network Assignee: bnc-team-screening@forge.provo.novell.com Reporter: nt1277@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Since the last update of my Tumbleweed system, DNS servers aren't written to /etc/resolv.conf. I tried to set NETCONFIG_DNS_POLICY to STATIC in /etc/sysconfig/network/config, but even that didn't help. My version of NetworkManager package is NetworkManager-1.8.0-1.1.x86_64 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
René Krell
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c6
Frank Kruger
------------------------------------------------------------------- Thu Jun 1 02:36:58 UTC 2017 - sckang@suse.com
- Add nm-dont-overwrite-resolv-conf.patch: Fix NetworkManager overwriting /etc/resolv.conf (bsc#960153, bsc#1021665).
Please not that current build of Leap 42.3 has NetworkManager-1.0.12-6.5.x86_64, which also contains the above-mentioned patch: Mo Feb 20 2017 sckang@suse.com - Add nm-dont-overwrite-resolv-conf.patch: Fix NetworkManager overwriting /etc/resolv.conf (bsc#960153, bsc#1021665). It works pretty well! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c8
Axel Braun
(In reply to Ondřej Súkup from comment #3)
*** Bug 1046969 has been marked as a duplicate of this bug. ***
Well, mentioned bug contained workaround (confirmed as working by multiple people); this workaround also gave rather good hint for the problem root cause.
Mostly for the benefit of other users reading this bug report that offers neither ...
So lets just add the link to the post here: https://forums.opensuse.org/showthread.php/525732-No-DNS-resolving-after-upd... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c10
Kai-Uwe Behrmann
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
Carsten Schoene
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c12
Thiago Macieira
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
Thiago Macieira
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c13
--- Comment #13 from Thiago Macieira
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c14
--- Comment #14 from Frank Kruger
As far as I can tell, it's an upstream bug. NM will try to merge the settings from /etc/dhclient.conf, which as supplied by OpenSUSE contains:
request subnet-mask, broadcast-address, routers, rfc3442-classless-static-routes, interface-mtu, host-name, domain-name, domain-search, domain-name-servers, nis-domain, nis-servers, nds-context, nds-servers, nds-tree-name, netbios-name-servers, netbios-dd-server, netbios-node-type, netbios-scope, ntp-servers;
The NM parser will get only the *last* line containing "request" and will not do continuations. That's why my generated file had
also request subnet-mask; also request broadcast-address; also request routers;
but none of the others.
WORKAROUND UNTIL UPSTREAM FIX:
merge the dhclient.conf request line into one:
request subnet-mask, broadcast-address, routers, rfc3442-classless-static-routes, interface-mtu, host-name, domain-name, domain-search, domain-name-servers, nis-domain, nis-servers, nds-context, nds-servers, nds-tree-name, netbios-name-servers, netbios-dd-server, netbios-node-type, netbios-scope, ntp-servers;
(no line breaks!)
Your findings are consistent with those described in https://bugzilla.opensuse.org/show_bug.cgi?id=1047004, in particular the workaround presented in https://bugzilla.opensuse.org/show_bug.cgi?id=1046969#c1. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c16
--- Comment #16 from Jonathan Kang
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c17
--- Comment #17 from Thiago Macieira
NM will parse these line by line. But the third line of the request entry starts with word "interface", which leads NM thinking it's a "interface" keyword (something like: interface "ep0" { blabla }). In this scenario, NM fails to parse the rest in request entry and this is exactly the cause of this bug.
This issue is introduced by commit d405cfd9. I'll prepare a patch and send it to upstream for review.
Indeed. A simple solution is to move this block further up: /* Save all request options for later use */ if (in_req) { in_req = !grab_request_options (reqs, p); continue; } That said, the parser needs to be fixed for line continuations anyway, something like merging the continuation lines prior to parsing the contents. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
Michiel Janssens
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
Pieter Hollants
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c18
Jacob W
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
Peter B
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
Ingo Göppert
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
Bruce Anderson
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c22
S. B.
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
S. B.
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c23
Jonathan Kang
Hello, this same bug is now happening when upgrading from Leap 42.3 to 15.0.
Is it the same issue as this one? If yes, does the workaround in comment#13 work for you? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004
http://bugzilla.opensuse.org/show_bug.cgi?id=1047004#c24
--- Comment #24 from S. B.
(In reply to S. B. from comment #22)
Hello, this same bug is now happening when upgrading from Leap 42.3 to 15.0.
Is it the same issue as this one? If yes, does the workaround in comment#13 work for you?
Hi there, after upgrading from 42.3 to 15.0 there is no DNS resolution. This is the same bug that appeared in Tumbleweed a while back: - https://forums.opensuse.org/showthread.php/520090-DNS-does-not-work-after-Ne... - https://forums.opensuse.org/showthread.php/525732-No-DNS-resolving-after-upd... - https://bugzilla.opensuse.org/show_bug.cgi?id=1046969 I didn't try the workaround in #13, but rather the workaround that I used when this bug hit me in Tumbleweed, deleting /etc/resolv.conf -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com