Bug 264310

Summary: No network in state2 during update
Product: [openSUSE] openSUSE 10.3 Reporter: Andreas Jaeger <aj>
Component: Update ProblemsAssignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: varkoly
Version: Alpha 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: first screenshot to show problem
screenshot showing network setup
YaST log files

Description Andreas Jaeger 2007-04-13 14:38:57 UTC
Scenario:
* Installation of openSUSE 10.2
* Update to openSUSE 10.3 Alpha3 - installation source is reachable via ftp
* Installation is successfull
* Reboot
* System has no proper network but needs it (see screenshot)

Looking at the system:
ifconfig eth0 shows me a network address
but /etc/resolv.conf just contains:
----------------
domain site
----------------

And therefore name resolution does not work (see second screenshot).
Comment 1 Andreas Jaeger 2007-04-13 14:39:22 UTC
Created attachment 131037 [details]
first screenshot to show problem
Comment 2 Andreas Jaeger 2007-04-13 14:39:45 UTC
Created attachment 131038 [details]
screenshot showing network setup
Comment 3 Andreas Jaeger 2007-04-13 14:41:46 UTC
Created attachment 131039 [details]
YaST log files
Comment 4 Andreas Jaeger 2007-04-13 14:42:40 UTC
After "rcnetwork start" I can continue the installation.
Comment 5 Michal Zugec 2007-04-19 17:59:04 UTC
Reproduced with same reason (also in vmware)

But don't find anything wrong. dhcpcd is supposed to obtain and write correct resolv.conf
Christian, do you have any idea where the problem could be?
Comment 6 Michal Zugec 2007-04-23 07:12:21 UTC
remove sysconfig maintainer from needinfo
added dhcpcd maintainer

Peter, could you check why dhcpcd doesn't write resolv.conf first time and second time do?
Comment 7 Christian Zoz 2007-04-24 08:26:06 UTC
Michal, sorry for the late reply. 
Please check how dhcpcd is called which options.
Is there another dhcpcd running?
Maybe dhcpcd is running as 'secondary' client.

Normally you should see a message from modify_resolvconf in the  system log.

Does it only happen when updating?
Comment 8 Michal Zugec 2007-04-24 09:28:27 UTC
I don't know that from yast log - dhcpcd starts from initscript before YaST
Andreas - could you attach /var/log/message from firstboot time?
Comment 9 Andreas Jaeger 2007-04-24 11:52:41 UTC
I only noticed it during update, all other installs worked fine.

I don't have the file anymore.

NOte: This error was easy to reproduce...
Comment 10 Michal Zugec 2007-05-03 15:56:32 UTC
Problem localized

/network/src/installation/inst_netsetup.ycp on line 43:

if (netconfig == "dhcp") netconfig = "static"; // FIXME
So in this case system obtains ip/gw address without resolv.conf (and any others settings)
Comment 12 Michal Zugec 2007-05-04 06:51:25 UTC
Peter, is there any way to say dhcpcd force to use it's own cash instead new request? 
Only usable I see in documentation parameter -s for sending DHCP_INFORM message
...
Comment 14 Michal Zugec 2007-05-09 11:40:49 UTC
I have solution for this described here:
http://lists.opensuse.org/opensuse-networking/2007-05/msg00001.html
Comment 15 Peter Poeml 2007-05-09 11:59:50 UTC
No, there is no way to force dhcpcd to use the cache. It wouldn't comply
with the protocol anyway. Unless there is no network connection (no DHCP
server cannot be contacted); then it would be allowed.

Using configuration statically which was once obtained by DHCP is not
good. It is a SuSE-ism, that some people around here think that it could
make sense...
It never makes sense for interface address, arguably it can be used to
fixate NIS servers and such, which is the same for statically as well as
for dynamically configured hosts.
Comment 16 Michal Zugec 2007-05-16 13:38:13 UTC
For second stage same network configuration will be used as in first stage (rcnetwork restart)
The patch is created and tested - all kinds of network/non network types of installation. Now we test autoyast and then fix can be submitted
Comment 17 Michal Zugec 2007-05-28 08:41:35 UTC
Code is submitted in subversion:
http://lists.opensuse.org/yast-devel/2007-05/msg00025.html
but it needs to fix in dhcpcd:
https://bugzilla.novell.com/show_bug.cgi?id=278551
Comment 18 Michal Zugec 2007-06-18 07:33:15 UTC
fixed for beta5+