Bug 159812

Summary: NetworkManager: DHCP timing out
Product: [openSUSE] SUSE Linux 10.1 Reporter: Winfried Dobbe <winfried_mb2>
Component: NetworkAssignee: Robert Love <rml>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: behlert, fmfischer, suse-beta
Version: Beta 8   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: excerpt of /var/log/NetworkManager during same time as pasted /var/log/messages output
todays output in /var/log/NetworkManager
todays output in /var/log/messages
Trying to attach to wpa wlan with NetworkManager-0.6.2
Trying to connect to unencrypted WLAN using NetworkManager-0.6.2
Output in /var/log/NetworkManager of succesful connection with ipw2200
unsuccessfull attempt to connect to WPA wlan
excerpt for /var/log/NetworkManager with Suse 10.1 final and NetworkManager 0.6.2-32
settings of WLAN access point
screenshot of network manager dialog

Description Winfried Dobbe 2006-03-21 17:29:28 UTC
(this might or might not be related to bug 159524)
At work we have a wireless network without a NIS. When connecting to the
wireless we (should) get an IP nr via DHCP and then we connect to the companies
network via  VPN. This works when I use the traditional network setup in Yast,
but when using network manager instead, I get an invalid ip address
(169.254.102.133). In /var/log/messages I see "DHCPOFFER from 192.168.100.254:
no domain-name-servers option."

Mar 21 13:36:58 alfafa dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port
67 interval 3
Mar 21 13:36:58 alfafa dhclient: DHCPOFFER from 192.168.100.254: no
domain-name-servers option.
Mar 21 13:37:01 alfafa dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port
67 interval 5
Mar 21 13:37:01 alfafa dhclient: DHCPOFFER from 192.168.100.254: no
domain-name-servers option.
Mar 21 13:37:02 alfafa kernel: eth1: no IPv6 routers present
Mar 21 13:37:06 alfafa dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port
67 interval 11
Mar 21 13:37:06 alfafa dhclient: DHCPOFFER from 192.168.100.254: no
domain-name-servers option.
Mar 21 13:37:17 alfafa dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port
67 interval 14
Mar 21 13:37:17 alfafa dhclient: DHCPOFFER from 192.168.100.254: no
domain-name-servers option.
Mar 21 13:37:22 alfafa dhclient: caught deadly SIGTERM
Mar 21 13:37:22 alfafa dhclient: could not restore resolv.conf: No such file or
directory
Mar 21 13:37:22 alfafa dhclient: DHCPRELEASE on eth1 to 192.168.10.1 port 67
Mar 21 13:37:22 alfafa dhclient: send_packet: Network is unreachable
Mar 21 13:37:22 alfafa dhclient: send_packet: please consult README file
regarding broadcast address.
Comment 1 Michael Gross 2006-03-22 12:33:49 UTC
Please attach /var/log/NetworkManager here.
Comment 2 Winfried Dobbe 2006-03-22 13:42:45 UTC
Looking at the now attached /var/log/messages from the same time span, I see the message: Device 'eth1' DHCP transaction took too long (>25s), stopping it.
I think that was already changed for bug 153243. So I'll try again with those updated NetworkManager rpms when I'm in the office again tomorrow.
Comment 3 Winfried Dobbe 2006-03-22 13:45:07 UTC
Created attachment 74453 [details]
excerpt of /var/log/NetworkManager during same time as pasted /var/log/messages output
Comment 4 Winfried Dobbe 2006-03-23 08:25:00 UTC
Tried with updated NetworkManager packages. No result. Attaching todays messages and NetworkManager log.
Comment 5 Winfried Dobbe 2006-03-23 08:27:57 UTC
Created attachment 74646 [details]
todays output in /var/log/NetworkManager
Comment 6 Winfried Dobbe 2006-03-23 08:29:16 UTC
Created attachment 74650 [details]
todays output in /var/log/messages
Comment 7 JP Rosevear 2006-03-23 14:06:36 UTC
The ip address you get is actually the autoip fallback (zeroconf/bonjour).
Comment 8 Robert Love 2006-03-23 14:35:21 UTC
Winfried: Is this with Timo's test packages?

Timo: What did you bump the DHCP timeout to in these packages, if anything?  The text still says 25s but it looks like it waited 40s ... hrm.

Changing the bug subject, this has nothing to do with NIS or the lack thereof.
Comment 9 Robert Love 2006-03-23 14:37:38 UTC
How does this differ from Bug #153243?

This is ipw2200 connecting to a broadcast, non-encrypted, access point, right?

So while we successfully connect and associate, DHCP fails as if we are not speaking the same language.  There are no other access control methods on this AP, right?  No MAC filtering?

The log looks fine.  Assuming you have the wireless settings right, it looks like you just do not have a functioning DHCP server on the LAN.  Hrm.
Comment 10 Timo Hoenig 2006-03-23 16:23:21 UTC
(In reply to comment #8)

> Timo: What did you bump the DHCP timeout to in these packages, if anything? 
> The text still says 25s but it looks like it waited 40s ... hrm.

Hm, I bumped the timeout to 40s.  Looks like I did not change the substring 25s in the nm_info() call, though.
Comment 11 Robert Love 2006-03-23 17:17:09 UTC
No worries.

I just submitted to autobuild an NM with a DHCP timeout of 45s.
Comment 12 Winfried Dobbe 2006-03-23 22:07:28 UTC
Yes, sorry that I forgot to mention it's a WLAN without encryption.
If I configure network device in Yast to "traditional with ifup", I get a valid ip address instantly.
Comment 13 Robert Love 2006-03-28 15:15:32 UTC
Winfried: Can you please try the latest NetworkManager packages (0.6.2)?  Timo and I think ipw2x00 should work fine, now.

Thank you!
Comment 14 Winfried Dobbe 2006-03-29 20:54:16 UTC
Thanks for the update. We are in the middle of an acceptance test, I hope I have time to test it tomorrow, else it will be Friday.
Comment 15 Winfried Dobbe 2006-03-30 07:52:21 UTC
One of the dependencies of the NetworkManager 0.6.2 is wpa_supplicant >= 0.4.8-9.
In the factory directories I can see only the source rpm of wpa_supplicant 0.4.8-8.
Can you add 0.4.8-9 ?
Comment 16 Timo Hoenig 2006-03-30 08:00:33 UTC
Maybe the mirrors are not properly synced.  Looks like gdwg.de is up to date.

http://ftp.gwdg.de/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/i586/wpa_supplicant-0.4.8-9.i586.rpm
Comment 17 Winfried Dobbe 2006-03-31 13:02:13 UTC
I wish I could be more positive, but I wasn't able to connect to either our non-encrypted WLAN at work or my WPA/ascii/TKIP WLAN at home.

The progress dialog continues until "57 % IP configuration started". For the WPA WLAN it keeps asking for the pasphrase then even though I enter the correct one.

On the positive side: my router didn't crash anymore, despite many attempts to connect to it.

Relevant output of /var/log/NetworkManager attached.
Comment 18 Winfried Dobbe 2006-03-31 13:04:19 UTC
Created attachment 75925 [details]
Trying to attach to wpa wlan with NetworkManager-0.6.2
Comment 19 Winfried Dobbe 2006-03-31 13:05:16 UTC
Created attachment 75926 [details]
Trying to connect to unencrypted WLAN using NetworkManager-0.6.2
Comment 20 Winfried Dobbe 2006-04-01 08:53:36 UTC
While waiting for the train last night I tried to connect to unencrypted WLAN that Dutch railway company offers nowaday. I got connected at first try. Don't know what's the difference, but I'll attach output in log file in case it is of any help.
Comment 21 Winfried Dobbe 2006-04-01 08:55:16 UTC
Created attachment 76026 [details]
Output in /var/log/NetworkManager of succesful connection with ipw2200
Comment 22 Robert Love 2006-04-13 19:49:58 UTC
Winfried: With the latest packages, are you still seeing a problem on the other AP that did not work?
Comment 23 Winfried Dobbe 2006-04-14 08:51:27 UTC
With beta 9 and NetworkManager-* upgraded to 0.6.2-10, I still can't connect to my WPA WLAN. Actually the progress indicator never makes it past the "28% configuring device" stage.
Log attached.

ps: for next 2 weeks I'm on honeymoon, so I'm afraid that I can't test anymore before 10.1 release.
Comment 24 Winfried Dobbe 2006-04-14 08:52:56 UTC
Created attachment 78449 [details]
unsuccessfull attempt to connect to WPA wlan
Comment 25 Stefan Behlert 2006-04-19 09:55:25 UTC
Thanks for the information, Winfried. Enjoy your honeymoon!
Comment 26 Robert Love 2006-05-09 15:29:59 UTC
Winfried: I hope that your homeymoon was wonderful!

Can I trouble you to retest and verify if your problem is fixed?

I built updated packages, and put them up for you:

    http://primates.ximian.com/~rml/misc/NetworkManager/

Preferably, it would be nice if you had the latest SUSE build in general, too, in case a kernel or wpa_supplicant update helps out, too.

Please confirm success or provide new details of the problem.  Thank you very, very much!
Comment 27 Winfried Dobbe 2006-05-09 20:29:42 UTC
No problem.
My HP laptop is in the office, where I'll be on Thursday and Friday. At the same time opensuse 10.1 should be released, so I'll let you know the result when I've installed that and the new networkmanager (probably Friday).
Comment 28 Winfried Dobbe 2006-05-16 08:03:38 UTC
Unfortunately, can't connect yet to either my WPA access point or unencrypted WLAN at work with network manager.

I installed 10.1 final and added the rpms from the link you provided. When trying to connect to the WPA access point, network manager comes asking for the key every 15 seconds or so. Since there was only an updated rpm for networkmanager-gnome, I also tried with the Gnome desktop iso KDE but that gave same result.

I will attach excerpt from /var/log/NetworkManager.
Comment 29 Winfried Dobbe 2006-05-16 08:13:39 UTC
Created attachment 83557 [details]
excerpt for /var/log/NetworkManager with Suse 10.1 final and NetworkManager 0.6.2-32
Comment 30 Robert Love 2006-05-16 22:19:15 UTC
This should work fine with an ipw2200.  Are you sure that your pairwise and group ciphers are TKIP?

Can you retest, choosing "Automatic (default)" for "Type", please?
Comment 31 Winfried Dobbe 2006-05-17 10:51:39 UTC
Attached are screenshots of wlan AP settings and the network manager dialog.
If I disable the WPA security on the AP I can connect to it with network manager, not when using WPA. 
But I couldn't connect to it with network card set to "traditional ifup" either when using WPA. 
AP still hangs from time to time when connecting from Suse, which it doesn't when I connect to WLAN from Windows.
Comment 32 Winfried Dobbe 2006-05-17 10:52:51 UTC
Created attachment 83827 [details]
settings of WLAN access point
Comment 33 Winfried Dobbe 2006-05-17 10:54:15 UTC
Created attachment 83828 [details]
screenshot of network manager dialog

Never mind the WPA passkey, I have already changed it after this post.
Comment 34 Robert Love 2006-05-17 17:21:55 UTC
Have you tried with nm-applet?  Same result?

Anyhow, if this also fails with ifup ...
Comment 35 Winfried Dobbe 2006-05-17 18:53:08 UTC
Same result. Maybe it's better to stop with this until I can test it with another WPA AP (mine is not exactly top quality).

But then there is still the question why network manager doesn't want to connect to the unprotected WLAN at work. That one works ok with ifup.
Comment 36 Robert Love 2006-05-17 18:56:37 UTC
I agree.

I will close this bug and leave you alone ;) but can you reopen a new bug if and when you retest with a new AP, and continue to see problems?