Bug 387050

Summary: automatic configuration: downloading metadata before NetworkManager has finished network startup
Product: [openSUSE] openSUSE 11.0 Reporter: Martin Vidner <mvidner>
Component: YaST2Assignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P3 - Medium CC: outofcontrol, sabourin.gilles
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs-slownm.tgz
NetworkManager log

Description Martin Vidner 2008-05-06 07:37:13 UTC
Created attachment 212545 [details]
y2logs-slownm.tgz

Installing from network. During Automatic Configuration of the network, yast tries to download the repo metadata (I did not check why). But it fails, because at that time NetworkManager is still setting up the network.

I suggest nm-online, /etc/sysconfig/network/config:NM_ONLINE_TIMEOUT or whatever.

Attaching y2logs
Comment 1 Martin Vidner 2008-05-06 07:38:28 UTC
Created attachment 212547 [details]
NetworkManager log

The yast error occurs at 09:25:39 while NM is still working.
Comment 2 Michal Zugec 2008-05-06 10:35:02 UTC
*** Bug 387128 has been marked as a duplicate of this bug. ***
Comment 3 Gilles Sabourin 2008-05-06 12:26:27 UTC
I suggest even not to perform network access if there is no connectivity : no need to stuck the user into a loop whenever there is still no ip address / no dns settings !
Comment 4 Michal Zugec 2008-05-12 09:58:16 UTC
fixed in yast2-network-2.16.43
when use NM, yast will check for configured IP and wait maximum 10 seconds (see also bug #195571)
Comment 5 Gilles Sabourin 2008-05-17 09:28:23 UTC
yast won't check for a valid IP address when use NM in beta3 : it fails after 10 seconds since bug #389131 has not been delivered either!
Comment 6 Out of Control 2008-11-05 04:14:16 UTC
When I configure my LAN, which does not access the internet, I get an error message for each online repository that can't be reached. Actually, I get 2 error messages per repo:

Download failed:
Download (curl) error for 'http://download.opensuse.org/distribution/11.0/repo/oss/content':
Error code: Connection failed
Error message: Couldn't resolve host 'download.opensuse.org'

and

Cannot access installation media
(Medium 1)
Check whether the server is accessible.

Do I really deserve 8 error messages for changing my ipaddress? I have configured correctly, but network settings is bombarding me with errors, because it really wants to access the repos right now!

This should fail silently. Give errors when the repos are required for the user initiated action. I shouldn't need internet access to configure my NIC.
Comment 7 Michal Zugec 2008-11-06 09:38:57 UTC
Out of Control: Which product? Which version?
Comment 8 Out of Control 2008-11-07 21:37:29 UTC
opensuse 11.0, updated to the official repository, otherwise out of the box install - Maybe I misunderstand your question, because that is in the bug. The problem appears in yast2, although it depends on networkmanager, which is 7.0 in this version.

Comment 9 Out of Control 2008-11-08 03:27:03 UTC
I don't know how to find the yast2 version or package information. The network setting program is invoked by "yast2 lan". I do not see a yast2-network* package installed.

Comment 10 Out of Control 2008-11-08 03:30:34 UTC
Now I have it: yast2-network 2.16.48-3.1
Comment 11 Michal Zugec 2008-11-09 12:02:14 UTC
But this is different problem. Original report was to wait for NM while it setup network. Your report is about problem, when resolver failed, but network is up (no valid /etc/resolv.conf). Please write separate bugreport