[Bug 577402] New: dhcpcp with Patch bnc#565030 has netlink error with /32 netmask
http://bugzilla.novell.com/show_bug.cgi?id=577402 http://bugzilla.novell.com/show_bug.cgi?id=577402#c0 Summary: dhcpcp with Patch bnc#565030 has netlink error with /32 netmask Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: petda@nexgo.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091216 Iceweasel/3.5.6 (like Firefox/3.5.6; Debian-3.5.6-1) After updating to dhcpcd-3.2.3-44.2.1.x86_64.rpm I got the following error: err, eth0: netlink: No such process Problem: no route/geteway was set - server is offline! If I remove patch16 (bnc#565030.diff) from spec-file, the problems are away. I think, the condition, which decide, if it is scope-link or scope-universe, is the problem: + if (gateway.s_addr == INADDR_ANY || + (gateway.s_addr == destination.s_addr && + netmask.s_addr == INADDR_BROADCAST)) THe line "gateway.s_addr == destination.s_addr &&" cause the error. Reproducible: Always Steps to Reproduce: 1. Install the newest Version of dhcpcd (openSUSE 11.1 or 11.2) 2. have a /32 network 3. restart network Actual Results: got a error and no gateway/routes was set myserver:/usr/src # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.26.164.1 172.26.166.164 255.255.255.255 UGH 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo Expected Results: gateway is set per dhcpcd myserver:/usr/src # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.26.164.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 172.26.164.1 0.0.0.0 UG 0 0 0 eth0 dhcpcd-debug start output: info, eth0: dhcpcd 3.2.3 starting info, eth0: hardware address = 00:24:21:2e:e6:13 info, eth0: broadcasting for a lease debug, eth0: sending DHCP_DISCOVER with xid 0x2a6efc48 debug, eth0: waiting for 20 seconds debug, eth0: got a packet with xid 0x2a6efc48 info, eth0: offered 172.26.166.164 from 172.26.160.17 debug, eth0: sending DHCP_REQUEST with xid 0x2a6efc48 debug, eth0: waiting for 20 seconds debug, eth0: got a packet with xid 0x2a6efc48 info, eth0: got subsequent offer of 172.26.166.164, ignoring debug, eth0: waiting for 20 seconds debug, eth0: got a packet with xid 0x2a6efc48 info, eth0: checking 172.26.166.164 is available on attached networks debug, eth0: sending ARP probe #1 debug, eth0: sending ARP probe #2 debug, eth0: sending ARP probe #3 debug, eth0: sending ARP claim #1 debug, eth0: sending ARP claim #2 info, eth0: leased 172.26.166.164 for 21800 seconds debug, eth0: renew in 10900 seconds debug, eth0: rebind in 19075 seconds info, eth0: adding IP address 172.26.166.164/32 info, eth0: adding route to 172.26.164.1/32 via 172.26.166.164 metric 0 info, eth0: adding route to 172.26.164.1/32 metric 0 info, eth0: adding default route via 172.26.164.1 metric 0 err, eth0: netlink: No such process debug, eth0: no dns information to write debug, eth0: writing /var/lib/dhcpcd/dhcpcd-eth0.info debug, eth0: exec "/etc/sysconfig/network/scripts/dhcpcd-hook" "/var/lib/dhcpcd/dhcpcd-eth0.info" "new" eth0 device: Intel Corporation 82573L Gigabit Ethernet Controller eth0 device: Intel Corporation 82573L Gigabit Ethernet Controller info, eth0: setting hostname to `h1604780' debug, eth0: exec "/etc/sysconfig/network/scripts/dhcpcd-hook" "/var/lib/dhcpcd/dhcpcd-eth0.info" "complete" Reload syslog service done debug, eth0: forking to background info, eth0: exiting dhcpcp test output: info, eth0: hardware address = 00:24:21:2e:e6:13 info, eth0: broadcasting for a lease debug, eth0: sending DHCP_DISCOVER with xid 0x4a0bcc43 debug, eth0: waiting for 10 seconds debug, eth0: got a packet with xid 0x4a0bcc43 info, eth0: offered 172.26.166.164 from 172.26.160.18 IPADDR='172.26.166.164' NETMASK='255.255.255.255' NETWORK='172.26.166.164' BROADCAST='172.26.166.164' ROUTES='172.26.164.1,255.255.255.255,172.26.166.164' GATEWAYS='172.26.164.1' HOSTNAME='myserver' DNSDOMAIN='testserver.net' LEASETIME='21800' RENEWALTIME='10900' REBINDTIME='19075' INTERFACE='eth0' CLASSID='dhcpcd 3.2.3' CLIENTID='01:00:24:21:2e:e6:13' DHCPCHADDR='00:24:21:2e:e6:13' info, eth0: exiting dhcp server config: host myserver { hardware ethernet 00:24:21:2E:E6:13; fixed-address 172.26.166.164; option subnet-mask 255.255.255.255; option routers 172.26.164.1; option domain-name "testserver.net"; option static-routes 172.26.164.1 172.26.166.164; } -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=577402
http://bugzilla.novell.com/show_bug.cgi?id=577402#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=577402
http://bugzilla.novell.com/show_bug.cgi?id=577402#c1
--- Comment #1 from Marius Tomaschewski
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) Gecko/20091216 Iceweasel/3.5.6 (like Firefox/3.5.6; Debian-3.5.6-1)
After updating to dhcpcd-3.2.3-44.2.1.x86_64.rpm I got the following error: err, eth0: netlink: No such process
Problem: no route/geteway was set - server is offline!
If I remove patch16 (bnc#565030.diff) from spec-file, the problems are away.
I think, the condition, which decide, if it is scope-link or scope-universe, is the problem: + if (gateway.s_addr == INADDR_ANY || + (gateway.s_addr == destination.s_addr && + netmask.s_addr == INADDR_BROADCAST))
THe line "gateway.s_addr == destination.s_addr &&" cause the error.
We have to review the patch and the code around. I think the best way to catch this condition is to check if gw == own ip && nm = /32 and reset gw. [...]
myserver:/usr/src # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.26.164.1 172.26.166.164 255.255.255.255 UGH 0 0 0 eth0 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
The dhcpcd sets exactly what it shows in dhcpcd-test ROUTES field. ip route add 172.26.164.1/23 via 172.26.166.164 Default route creation fails, because the client can't set any default route via gateway that is reachable over a gateway route.
Expected Results: gateway is set per dhcpcd
myserver:/usr/src # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.26.164.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 172.26.164.1 0.0.0.0 UG 0 0 0 eth0
You'll get exactly this when you comment out your static-route option. See the following output - the correct device host route to the gw required by the default route is set (dhcpcd-3.2.3-set-route.diff):
dhcpcd-debug start output: info, eth0: adding IP address 172.26.166.164/32 info, eth0: adding route to 172.26.164.1/32 via 172.26.166.164 metric 0 info, eth0: adding route to 172.26.164.1/32 metric 0 ^^^^^^^^^^^^^^^^^^^^^^^^ info, eth0: adding default route via 172.26.164.1 metric 0 err, eth0: netlink: No such process [...] dhcpcp test output: [...] IPADDR='172.26.166.164' NETMASK='255.255.255.255' NETWORK='172.26.166.164' BROADCAST='172.26.166.164' ROUTES='172.26.164.1,255.255.255.255,172.26.166.164' GATEWAYS='172.26.164.1' [...]
dhcp server config: host myserver { hardware ethernet 00:24:21:2E:E6:13; fixed-address 172.26.166.164; option subnet-mask 255.255.255.255; option routers 172.26.164.1; option domain-name "testserver.net"; option static-routes 172.26.164.1 172.26.166.164; }
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=577402
http://bugzilla.novell.com/show_bug.cgi?id=577402#c2
--- Comment #2 from Peter Varkoly
http://bugzilla.novell.com/show_bug.cgi?id=577402
http://bugzilla.novell.com/show_bug.cgi?id=577402#c
Peter Varkoly
http://bugzilla.novell.com/show_bug.cgi?id=577402
http://bugzilla.novell.com/show_bug.cgi?id=577402#c4
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=577402
http://bugzilla.novell.com/show_bug.cgi?id=577402#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=577402
https://bugzilla.novell.com/show_bug.cgi?id=577402#c
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=577402
https://bugzilla.novell.com/show_bug.cgi?id=577402#c14
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=577402
https://bugzilla.novell.com/show_bug.cgi?id=577402#c15
--- Comment #15 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com