Bug 546213

Summary: resolv.conf is empty therefore no dns
Product: [openSUSE] openSUSE 11.2 Reporter: Forgotten User bSWU20Bh6O <forgotten_bSWU20Bh6O>
Component: NetworkAssignee: Marius Tomaschewski <mt>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: david.maillists, forgotten_Xh41Ao4q6j, forgotten_zhFaldehF_, gp, greenpagan13, kailed, kairo, lnozot, nedux, willkeinspam
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: /var/log/messages
/var/log/NetworkManager

Description Forgotten User bSWU20Bh6O 2009-10-12 16:11:40 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-2.2 Firefox/3.5.3

/etc/resolv.conf is not getting updated. I have to copy /etc/resolv.conf.netconfig to the empty /etc/resolv.conf for networking to work. This has happened on two machines running the latest from openSUSE 11.2 factory repos.

Reproducible: Always
Comment 1 Forgotten User bSWU20Bh6O 2009-10-12 16:13:29 UTC
Created attachment 322099 [details]
/var/log/messages
Comment 2 Forgotten User bSWU20Bh6O 2009-10-12 16:13:54 UTC
Created attachment 322100 [details]
/var/log/NetworkManager
Comment 3 Daniele Tombolini 2009-10-13 16:31:58 UTC
Confirmed. It's a post M8 bug for me.
Comment 4 Stephan Binner 2009-10-13 19:36:02 UTC
*** Bug 546546 has been marked as a duplicate of this bug. ***
Comment 5 Forgotten User Xh41Ao4q6j 2009-10-15 01:04:03 UTC
If resolv.conf was not touched since M8, then it still has wrong md5sum, and  netconfig has no reason to update it. 

While NetworkManager is now using netconfig:

From NetworkManager log: 
Oct 12 08:34:59 bensteinm08 NetworkManager: <debug> [1255358099.021905] run_netconfig(): Spawning '/sbin/netconfig modify --service NetworkManager'

the update still fails

From messages:
Oct 12 08:34:59 bensteinm08 dns-resolver: ATTENTION: You have modified /etc/resolv.conf. Leaving it untouched... 


After copy of resolv.conf.netconfig to resolv.conf:
From messages:
Oct 12 08:37:27 bensteinm08 sudo: bensteinm : TTY=pts/2 ; PWD=/home/bensteinm ; USER=root ; COMMAND=/bin/cp /etc/resolv.conf.netconfig /etc/resolv.conf 

which brought copy with correct md5sum, netconfig will update resolv.conf.


The same effect would be achieved by removing resolv.conf.
Comment 6 Will Stephenson 2009-10-15 11:19:36 UTC
Have any of you hand-edited resolv.conf?
Comment 7 Will Stephenson 2009-10-15 11:34:53 UTC
*** Bug 546700 has been marked as a duplicate of this bug. ***
Comment 8 Forgotten User bSWU20Bh6O 2009-10-15 14:20:10 UTC
I never hand-edited resolv.conf
Comment 9 Joseph Short 2009-10-15 18:32:29 UTC
Coming over from #546700, once I discovered the empty DNS was the reason for the internet access suddenly not working, I added the relevant lines from my regular computer.  It works now through two reboots.
Comment 10 Mario Carrion 2009-10-15 19:44:43 UTC
I can confirm this after updating to RC1
Comment 11 Jan Blunck 2009-10-16 10:08:58 UTC
This starts happening with RC1 (M8 was still fine).

M8 has NetworkManager-0.7.1_git20090811-2.2 while RC1 comes with NetworkManager-0.7.1_git20090811-3.2. Changelog diff is:

* Mon Oct 05 2009 tambet@novell.com
- Never fall back to manually updating resolv.conf, even if
  netconfig fails (bnc #537907, #544195).
Comment 12 Tambet Ingo 2009-10-16 10:21:35 UTC
The change mentioned in comment #11 fixed the NetworkManager to do the right thing - to never update resolv.conf on it's own and to always use only netconfig. This has always been our policy, but things unfortunately broke in RC7. Now that the bug has been fixed, there's a side effect - if you have used NetworkManager from RC7, you have resolv.conf written by NetworkManager, which netconfig refuses to change. You can fix that by running 'sudo /sbin/netconfig update -f'.

This problem will not affect anyone who hasn't run RC7, so I suggest we just close this bug.
Comment 13 Nikolai Maziachvili 2009-10-16 12:02:22 UTC
i confirm this bug too. after last update (15-10-2009) of 11.2 M8 i lost contact to outside world. Empty resolv.conf was the reason. Adding DNS IPs and restarting network service does the trick. 
But this is not the first time i come across of this problem. Once i remember someone with opensuse 10.3 had similar problem. That is not relevant now, but that makes me think that this bug has deeper roots then one might think.
Comment 14 Joseph Short 2009-10-16 21:21:01 UTC
As I mentioned in #546700 (now duped to this), M8 was fine until an update on 2009-10-12.  I have been trying out these betas, and I always do a full, wipe the hard drive, new install on each one.  This problem only appeared for me after that M8 update.  Previous to that, it was fine.

I am now installing RC1 on that machine, using the same clean and install I was doing before.  I will know if this problem has been fixed for RC1 or not (regardless of M7).  I will post that result here.
Comment 15 Joseph Short 2009-10-16 23:52:04 UTC
Okay, it installed (I just upgraded the CD drive to a DVDR/CDR drive so that I could use the DVD install (first time I tried that).  It installed the fastest of either of the other two options I was using before.

The only problem I encountered was the first time I tried to log in, all I got was a blank screen with a movable mouse cursor.  I killed the X server (ctrl-alt-backspace) and tried again.  It logged me properly this time.

I tested the internet access and it works.  Looking at resolv.conf, I see the first line:
### /etc/resolv.conf file autogenerated by netconfig!

The only other issue I see is when I create a new icon for Konqueror file browser in the Desktop folder, I cannot edit the title in the General tab of properties.  It cannot be changed from "Link to Application."  However, the title I insert in the Name box of the Application tab comes up in the Desktop folder as the title of the icon.

I did complete updates, both the test updates from the updater applet and from Yast.  The only problem I got was an exit with error 5 from the Yast app.  When I went back to see if there were any packages that were missed, it showed no updates for anything installed on the computer.
Comment 16 Joseph Short 2009-10-16 23:53:24 UTC
This is RC1 I just installed.  Sorry about any confusion.
Comment 17 Stephan Binner 2009-10-18 09:09:25 UTC
*** Bug 547916 has been marked as a duplicate of this bug. ***
Comment 18 Forgotten User zhFaldehF_ 2009-10-18 14:56:33 UTC
I've always found that if I did: 

sudo mv /etc/resolv.conf /tmp

then 

sudo /sbin/service network restart

NetworkManager will then start writing resolv.conf again.. this is something similar I reported and was fixed for openSUSE 11.1..
Comment 19 Tambet Ingo 2009-10-19 07:19:56 UTC
There's no need to invent new workarounds or guess why it might fail, please read comment #12.

This bug does not affect anyone who hasn't been helping out with testing - if you do a fresh install of 11.2 or upgrade from 11.1, everything works fine. I don't think we can or should support upgrades from every broken testing build, so I'm going to close this bug. Once again, if you do experience this issue, run:

sudo /sbin/netconfig update -f
Comment 20 Tambet Ingo 2009-11-05 07:23:41 UTC
*** Bug 551741 has been marked as a duplicate of this bug. ***