Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230644 - net-misc/dhcpcd-4.0.0_beta7 doesn't renew lease
Summary: net-misc/dhcpcd-4.0.0_beta7 doesn't renew lease
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-03 15:13 UTC by Dmitry Karasik
Modified: 2008-07-22 19:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output of dhcpcd -dd eth0 directed to a file. (dhcpcd_dd_eth0.log,134.36 KB, text/plain)
2008-07-06 16:17 UTC, Samuli Suominen (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Karasik 2008-07-03 15:13:36 UTC
Ever since I upgraded to dhcpcd-4.0.0_beta7 it has been letting the IP lease expire without renewing it, which causes services to stop working as my host name is unregistered from the DNS server.

In previous versions I would see entries in the log similar to the following every day:

Jun 10 20:18:44 wsdkarasik2 dhcpcd[1630]: eth0: renewing lease of x.x.198.85
Jun 10 20:18:44 wsdkarasik2 dhcpcd[1630]: eth0: leased x.x.198.85 for 86400 seconds
Jun 10 20:18:44 wsdkarasik2 dhcpcd[1630]: eth0: no renewal time supplied, assuming 43200 seconds
Jun 10 20:18:44 wsdkarasik2 dhcpcd[1630]: eth0: no rebind time supplied, assuming 75600 seconds


However with 4.0.0_beta7 I see a startup message:
Jun 20 09:22:10 wsdkarasik2 dhcpcd[32414]: eth0: dhcpcd 4.0.0-beta7 starting
Jun 20 09:22:10 wsdkarasik2 dhcpcd[32414]: eth0: hardware address = 00:0c:76:82:b0:64
Jun 20 09:22:10 wsdkarasik2 dhcpcd[32414]: eth0: DUID = 00:01:00:01:0f:2c:78:b8:00:0c:76:82:b0:64
Jun 20 09:22:10 wsdkarasik2 dhcpcd[32414]: eth0: broadcasting for a lease
Jun 20 09:22:15 wsdkarasik2 dhcpcd[32414]: eth0: offered x.x.198.85 from x.x.196.37
Jun 20 09:22:15 wsdkarasik2 dhcpcd[32414]: eth0: lease of x.x.198.85 acknowledged
Jun 20 09:22:19 wsdkarasik2 dhcpcd[32414]: eth0: leased x.x.198.85 for 86400 seconds
Jun 20 09:22:19 wsdkarasik2 dhcpcd[32414]: eth0: no renewal time supplied, assuming 43200 seconds
Jun 20 09:22:19 wsdkarasik2 dhcpcd[32414]: eth0: no rebind time supplied, assuming 75600 seconds


No subsequent renewal messages are logged.
Comment 1 Roy Marples 2008-07-04 10:15:31 UTC
I think I already have this fixed.
Could you test this snapshot please?
http://roy.marples.name/dhcpcd/dhcpcd-4.0.0-beta7-200807041012.tar.bz2

You can force a renew like so

dhcpcd -n eth0
Comment 2 Roy Marples 2008-07-05 17:02:20 UTC
beta8 is now out, where this should be fixed :)
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2008-07-06 16:17:42 UTC
Created attachment 159709 [details]
output of dhcpcd -dd eth0 directed to a file.

$desc
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2008-07-06 16:18:17 UTC
(In reply to comment #3)
> Created an attachment (id=159709) [edit]
> output of dhcpcd -dd eth0 directed to a file.
> 
> $desc
> 

beta7 still, need to try beta8..
Comment 5 Roy Marples 2008-07-07 12:24:53 UTC
If you can get a packet capture to match the log, that would be useful
Comment 6 Dmitry Karasik 2008-07-08 13:03:10 UTC
beta8 fixes the problem for me.
Comment 7 Geoff Leach 2008-07-08 17:31:45 UTC
beta8 fixes the problem for me also
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-07-22 19:54:14 UTC
Comments indicate beta8 fixes this issue, Closing at maintainers request.