Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 223141

Summary: net-misc/dhcpcd-4.0.0_beta4 no network after net.eth0 initialization
Product: Gentoo Linux Reporter: L.J. <gentoofu>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: minor CC: roy
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: kernel config
tcpdump before dhcpcd -k eth0
tcpdump after dhcpcd -k eth0
Fix classless static routes
dhcpcd beta5 eth0.lease

Description L.J. 2008-05-21 22:57:21 UTC
net.eth0 initialization accepts a correct ip address from the router through dhcpcd from boot-up; however, there is no network after it has finished. Symptom started happening after beta3 and beta4. Works fine with beta2. I've disabled parallel_rc to see if it's a race condition and, in the end, it still doesn't work.

To relief the problem, dhcpcd -k eth0 then dhcpcd eth0.

Interests for diagnostics:
sys-kernel/gentoo-sources-2.6.25-r4 along with sys-kernel/genkernel-3.4.10_pre10
Comment 1 L.J. 2008-05-21 22:58:58 UTC
Created attachment 153887 [details]
kernel config
Comment 2 L.J. 2008-05-21 23:01:06 UTC
Created attachment 153889 [details]
tcpdump before dhcpcd -k eth0
Comment 3 L.J. 2008-05-21 23:02:35 UTC
Created attachment 153891 [details]
tcpdump after dhcpcd -k eth0
Comment 4 Roy Marples 2008-05-22 00:13:28 UTC
Created attachment 153893 [details, diff]
Fix classless static routes

I suspect this is the same bug as at http://bugs.marples.name/show_bug.cgi?id=81

I don't have time to look at those dumps properly to confirm until next week, so try this patch in the meantime.
Comment 5 Roy Marples 2008-05-25 22:35:29 UTC
This should be fixed in beta5
Comment 6 L.J. 2008-05-26 07:30:36 UTC
(In reply to comment #5)
> This should be fixed in beta5
> 

Sorry I don't have any experience making my own ebuild, so I couldn't try your patch. I'm also lacking in time to figure out how due to summer courses.. And to tell you the news, the problem still remains in beta5. I'll try you to get a before & after leases as the person from the bug link you pasted didn't provide a new one.
Comment 7 L.J. 2008-05-31 04:19:27 UTC
Created attachment 154909 [details]
dhcpcd beta5 eth0.lease
Comment 8 Roy Marples 2008-05-31 05:55:57 UTC
Why don't you also post some before and after network info like say ifconfig and route output. Otherwise I'm just guessing at what is wrong :)
Comment 9 L.J. 2008-05-31 06:02:46 UTC
Ahh, I don't think it'll be necessary unless you need to look into this further.

Usually when I upgrade and downgrade between beta2 and beta4, dhcpcd.sh and
ypbind.sh would be asked about in etc-update. However, when I tried degrading
from beta5 to beta2 and beta4 to beta2, I don't get such message anymore. And
what's weird is that beta5 hasn't been working until now. Even weirder, beta4
and beta2 fails to start net.eth0. I've just recently upgraded to openrc-0.2.5,
so I'm thinking that may be the solution/cause of it. Though, I've upgraded
other packages as well so I'm not sure... I've just recently deleted the
contents of /var/lib/dhcpcd/ as well and re-emerged, so I dunno if that have
made an impact.

All in all, dhcpcd functions normally again, but only on beta5.
Comment 10 Roy Marples 2008-06-19 08:45:31 UTC
This bug is fixed and should be closed.
Comment 11 Peter Volkov (RETIRED) gentoo-dev 2008-06-19 12:13:04 UTC
Thanks Roy. Closing.