[Bug 402575] New: NetworkManager unable to connecto to dhcp-enabled networks
https://bugzilla.novell.com/show_bug.cgi?id=402575 Summary: NetworkManager unable to connecto to dhcp-enabled networks Product: openSUSE 11.0 Version: Final Platform: x86-64 OS/Version: openSUSE 11.0 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mail@philipp-wagner.com QAContact: qa@suse.de Found By: Customer When I try to use the knetworkmanager applet to connect to a wired or wireless network which uses DHCP, the system gets an IP address from the DHCP server, but networkmanager is unable to recognice that and closes the connection again. The important part of /var/log/messages (complete version is attached) is: Jun 21 16:51:10 ashley dhclient: bound to 192.168.0.30 -- renewal in 1417 seconds. Jun 21 16:51:47 ashley dhclient: caught deadly SIGTERM The corresponding NetworkManger log looks like that: Jun 21 16:51:02 ashley NetworkManager: <info> dhclient started with pid 29860 Jun 21 16:51:02 ashley NetworkManager: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete. Jun 21 16:51:47 ashley NetworkManager: <info> Device 'eth0' DHCP transaction took too long (>45s), stopping it. Jun 21 16:51:47 ashley NetworkManager: <info> eth0: canceled DHCP transaction, dhclient pid 29860 I am able to access the internet in the period between the DHCPOFFER and NetworkManager taking the connection down (with the timestamps here: between 16:51:10 and 16:51:47). This happens both with wired and wireless connections. I've installed openSUSE 11 by upgrading from 10.3. With that version I had no problem with the network connection whatsoever. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402575
User mail@philipp-wagner.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c1
--- Comment #1 from Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
User mail@philipp-wagner.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c2
--- Comment #2 from Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
User mail@philipp-wagner.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c3
--- Comment #3 from Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=402575
User hschaa@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c4
Helmut Schaa
https://bugzilla.novell.com/show_bug.cgi?id=402575
User mail@philipp-wagner.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c5
--- Comment #5 from Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
User federico@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c6
Federico Mena Quintero
https://bugzilla.novell.com/show_bug.cgi?id=402575
User madmax@teenspirit.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c7
Max van der Ploeg
https://bugzilla.novell.com/show_bug.cgi?id=402575
User hschaa@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c8
Helmut Schaa
https://bugzilla.novell.com/show_bug.cgi?id=402575
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c9
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=402575
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c10
--- Comment #10 from Marius Tomaschewski
Problem solved. OpenSUSE 11 includes dhcpcd 3 (which is mentioned in the release notes) and installs a new config file /etc/dhclient.conf.rpmnew,
Please note, that the dhcpcd 3.x update mentioned in release notes is a completely different dhcp client (used by default by ifup / rcnetwork) and does not have anything to do with the dhclient (dhcp-client package) that is used by the NetworkManager. It does not touch dhclient.conf. (In reply to comment #9 from Tambet Ingo)
"(I would guess almost everybody has that problem?)"
Everybody who was using 10.3, changed /etc/dhclient.conf and upgraded to 11.0.
Yes, it looks like. The dhcp-client RPM installs it (on 11.0 as well as before) using %config(noreplace) /etc/dhclient.conf so when the user modifies it, the RPM installs dhclient.conf.rpmnew only.
How should we fix it? I don't agree with showing a dialog, it would be a bit better but wouldn't solve the issue. The only possible solution I see is to fix dhclient to override configuration file values with command line arguments (like every other program does). Marius, do you agree with this solution? Or do you have some other suggestions?
Hmm... This would be a change of the behavior of the dhclient (that is not really usual here) but sounds like the best option we have. Alternatively it would be possible to add a postinstall hook removing the script option from the (even user modified) config... not good. The third way would be to use also the -cf option in NetworkManager. The dhclient(8) manual page is not very exact about the precedence of config vs. command line: "[...] The names of the network interfaces that dhclient should attempt to configure may be specified on the command line. If no interface names are specified on the command line dhclient will normally identify all network interfaces, eliminating non-broadcast interfaces if possible, and attempt to configure each interface. It is also possible to specify interfaces by name in the dhclient.conf(5) file. If interfaces are specified in this way, then the client will only configure interfaces that are either specified in the configuration file or on the command line, and will ignore all other interfaces. [...]" Hmm... "either specified in the configuration file or on the command line". fine and which does it use when both is the case? Ignore all, use all? "[...] The DHCP client normally gets its configuration information from /etc/dhclient.conf, its lease database from /var/lib/dhcp/dhclient.leases, stores its process ID in a file called /var/run/dhclient.pid, and configures the network interface using /sbin/dhclient-script To specify different names and/or locations for these files, use the -cf, -lf, -pf and -sf flags, respectively, fol- lowed by the name of the file. This can be particularly useful if, for example, /var/lib/dhcp or /var/run has not yet been mounted when the DHCP client is started. [...]" OK, "To specify different names [...] use the -cf, -lf, -pf and -sf flags" sound clear enough for me to fix it to override the default & config values with command line options. I'll take a look on this, but not before next week. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402575
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c11
--- Comment #11 from Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=402575
User madmax@teenspirit.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c12
--- Comment #12 from Max van der Ploeg
Max, can you please try if you can get a connection with static IP setup? If yes, this is the same issue. If no, please open a new bug report.
I think it's a different issue. I tried the commands from the wiki. http://en.opensuse.org/Tracking_down_wireless_problems First of all, I did a fresh installation with 11.0. I only kept my /home partition. I have read the comments, maybe this was different, no upgrade. Only a previous 10.3 install on /home. But also, I thought at first that the iwl4965 driver was not working. But I got through the point of the "iwconfig wlan0" command. Then networkmanager wouldn't start anymore. But yesterday I tried (for the last time) the command "rcnetwork start". And I had wifi connection. After that. I tried a reboot. I tried rcnetwork stop / start again. Everything seems to keep working. For my idea I have not changed anything on the network installation. So I can't explain this. For me, its a miracle. But if you have more questions I wil test en send logs if needed. P.S. I didn't try the static ip. I can if you need to. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402575
User jolz@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c13
jolz j
From /var/log/messages the IP vanishes as following:
Jun 30 05:44:43 newsys dhclient: caught deadly SIGTERM Jun 30 05:44:43 newsys dhclient: could not restore resolv.conf: No such file or directory Jun 30 05:44:43 newsys dhclient: DHCPRELEASE on eth0 to 172.16.5.121 port 67 Jun 30 05:44:43 newsys dhclient: send_packet: Network is unreachable Jun 30 05:44:43 newsys dhclient: send_packet: please consult README file regarding broadcast address. /var/log/NetworkManager says at this second: Jun 30 05:44:43 newsys NetworkManager: <info> Device 'eth0' DHCP transaction took too long (>45s), stopping it. as root, I do a "rcnetwork restart" and wait ~10 sec. normally, network is up then and the user ca work. This happend on various computers with LAN-connection (NO WLAN!!!!) and is only hardly reproducible: only 1 in ~100 boot cycles shows this problem. Network card driver list (don't think, it is important) is currently "forcedeth.c" and "r8169" SuSE Version is 10.3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402575
User piny@gmx.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c14
Pi Ny
https://bugzilla.novell.com/show_bug.cgi?id=402575
User piny@gmx.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c15
--- Comment #15 from Pi Ny
https://bugzilla.novell.com/show_bug.cgi?id=402575
User piny@gmx.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c16
--- Comment #16 from Pi Ny
Just checked SW versions: Unchanged from openSUSE-retail 11.0 dhcp-client 3.0.6-86.1 NetworkManager 0.7.0r3685-7.1-x86_64
Updated NetworkManager-kde 0.7r826733-2.1-x86_64 from KDE-Backports ... downgrading recommended?
After downgrade to NetworManager-kde 0.7r826733-2.1-x86_64 from openSUSE-11.0-Updates it first seemed to be fixed. But after a reboot, similar errors occurred - and even a "rcnetwork restart" didn't help. Strong indication: This is connected with the system security settings. The NetworkManager connects fine with "easy" system security setting. If I choose "secure" (what I would prefer), the NetworkManager is not able to connect. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=402575
Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
User mail@philipp-wagner.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c17
--- Comment #17 from Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
JP Rosevear
https://bugzilla.novell.com/show_bug.cgi?id=402575
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c18
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=402575
User aj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c19
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=402575
User mail@philipp-wagner.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c20
--- Comment #20 from Philipp Wagner
https://bugzilla.novell.com/show_bug.cgi?id=402575
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=402575#c21
Tambet Ingo
participants (1)
-
bugzilla_noreply@novell.com