Bug 133582

Summary: dhcpcd clobbers interface settings
Product: [openSUSE] SUSE Linux 10.1 Reporter: Andreas Schwab <schwab>
Component: NetworkAssignee: Peter Poeml <poeml>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: PowerPC   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Schwab 2005-11-12 10:10:28 UTC
Every now and then dhcpcd brings down the interface for no apparent reason.  This clobbers any additional addresses and routes associated with this interface.
Comment 1 Peter Poeml 2005-11-14 08:58:54 UTC
Do you have more details? 
How do you know that dhcpcd is the culprit?
Comment 2 Andreas Schwab 2005-11-14 09:29:29 UTC
There is no evidence that anything else should be it.
Comment 3 Peter Poeml 2005-11-18 10:09:01 UTC
Once the address got lost, is dhcpcd running then?
what does /var/lib/dhcpcd/dhcpcd-eth0.info contain?
what does grep dhc /var/log/messages show, after enabling debugging in
/etc/sysconfig/network/dhcp?
Comment 4 Andreas Schwab 2005-11-21 21:24:05 UTC
Nov 12 10:58:15 whitebox modify_resolvconf: restored /etc/named.conf.saved.by.dhcpcd.wlan0 to /etc/named.conf
Nov 12 10:58:25 whitebox modify_resolvconf: Service dhcpcd modified /etc/named.conf. See info block in this file
Comment 5 Peter Poeml 2005-11-28 14:48:38 UTC
This rather looks as if dhcpcd takes down the interface (the lease might
have become invalid), and has acquire a new lease after 10 seconds, so
it rewrites named.conf again. The debug log would help. The lease
time is how long?
Comment 6 Andreas Schwab 2006-01-08 11:21:46 UTC
LEASETIME=86400
RENEWALTIME=43200
REBINDTIME=75600

-rw-------  1 root root 136 Jan  8 12:14 dhcpcd-wlan0.cache
-rw-r--r--  1 root root 518 Jan  8 12:14 dhcpcd-wlan0.info
-rw-r--r--  1 root root 518 Jan  3 13:12 dhcpcd-wlan0.info.old
-rw-r--r--  1 root root   0 Jan  3 13:12 dhcpcd-wlan0.timestamp
Comment 7 Peter Poeml 2006-01-25 16:14:55 UTC
=> Might be related to bug 131295

Puzzling... 
How often does it appear?

 - every 12 hours
 - every 21 hours
 - every 24 hours
 - irregularly
Comment 8 Andreas Schwab 2006-01-25 16:33:09 UTC
The latter.
Comment 9 Ihno Krumreich 2006-04-24 12:15:31 UTC
Status of the bug?
Comment 10 Peter Poeml 2006-05-08 15:52:26 UTC
Sorry about the late answer. I assume that this is still reproducable?
If so, could you please grab an strace log with timestamps, like
strace -ftt -o dhcpcd.strace -p $(pidof dhcpcd)
from when it happens?

If it happens irregularly, I have no idea what could be causing it. As I
wrote above, I hope that switching debug mode on does reveal something.
It can be enabled by setting DHCLIENT_DEBUG in
/etc/sysconfig/network/dhcp to "yes".  However, I rather suspect a
problem with the driver; maybe the device becomes unavailable at
times... which network driver is it that you are using?
Comment 11 Andreas Schwab 2006-05-16 16:29:51 UTC
This happened with the airport driver.
Comment 12 Peter Poeml 2006-06-19 07:58:58 UTC
In the G3 Powerbook, the driver works fine (I use it all the time).

Even temporary link losses don't cause such a problem here:

Jun 16 15:41:17 cherry kernel: eth1: New link status: AP Out of Range (0004)
Jun 16 15:41:17 cherry kernel: eth1: New link status: AP In Range (0005)
Jun 16 15:41:51 cherry kernel: eth1: New link status: AP Out of Range (0004)
Jun 16 15:41:51 cherry kernel: eth1: New link status: AP In Range (0005)

...dhcpcd continues to work.
Comment 13 Peter Poeml 2006-10-27 16:19:04 UTC
Hi Andreas, does the problem still exist with your machine?
Comment 14 Andreas Schwab 2006-10-30 15:12:38 UTC
This machine does not exist any more.
Comment 15 Peter Poeml 2006-11-02 09:31:36 UTC
Okay. Closing this bug then.