public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Why is dhcpcd starting by itself?
Date: Sun, 26 Feb 2012 17:31:23 +0200	[thread overview]
Message-ID: <20120226173123.3e9bb86d@khamul.example.com> (raw)
In-Reply-To: <20120226141954.GB2249@Gee-Mi-Ni>

On Sun, 26 Feb 2012 15:19:54 +0100
Willie WY Wong <wongwwy@member.ams.org> wrote:

> On Sun, Feb 26, 2012 at 10:35:35AM +0100, Penguin Lover Willie WY
> Wong squawked:
> > Can someone help me figure out how to find the offending initscript
> > that is needlessly calling dhcpcd? 
> 
> Apparently the culprit is /etc/init.d/netmount
> I am not sure how it got into the default run level, since I don't use
> any network file systems on my netbook. 

I believe the problem is much deeper than that and while your
observations are valid, you don't have a root cause yet. You just have
a happy symptom that works with your specific configuration.

Here's what I've found after much up & down-grading and rebooting:

First, I've had netmount in the default runlevel for ages and it's
worked for ages even though it does nothing.
Second, openrc has been launching "dhcpcd -q" at boot time for ages and
this has never interfered with wicd which comes along later.

openrc-0.8.* always works with any kernel version
openrc-0.9* work with kernel-3.2.5

openrc-0.9* does not work with kernel-3.2.6, giving these errors:

Feb 26 17:16:53 khamul dhcpcd[2661]: wlan0: leased 172.20.0.41 for
43200 seconds 
Feb 26 17:16:53 khamul avahi-daemon[2479]: Joining mDNS multicast group
on interface wlan0.IPv4 with address 172.20.0.41. 
Feb 26 17:16:53 khamul avahi-daemon[2479]: New relevant interface
wlan0.IPv4 for mDNS. 
Feb 26 17:16:53 khamul avahi-daemon[2479]: Registering new address
record for 172.20.0.41 on wlan0.IPv4. 
Feb 26 17:16:54 khamul dhcpcd[2661]: eth0: sending IPv6 Router
Solicitation
Feb 26 17:16:54 khamul dhcpcd[2661]: eth0: sendmsg: Network is
unreachable 
Feb 26 17:16:55 khamul dhcpcd[4388]: sending commands to master dhcpcd
process 
Feb 26 17:16:55 khamul dhcpcd[2661]: control command: /sbin/dhcpcd -k
wlan0 
Feb 26 17:16:55 khamul dhcpcd[2661]: wlan0: releasing lease of
172.20.0.41 
Feb 26 17:16:55 khamul avahi-daemon[2479]: Withdrawing address record
for 172.20.0.41 on wlan0. 
Feb 26 17:16:55 khamul avahi-daemon[2479]: Leaving mDNS multicast group
on interface wlan0.IPv4 with address 172.20.0.41. 
Feb 26 17:16:55 khamul avahi-daemon[2479]: Interface wlan0.IPv4 no
longer relevant for mDNS. 
Feb 26 17:16:55 khamul dhcpcd[2661]: wlan0: open_udp_socket: Cannot
assign requested address 
Feb 26 17:16:55 khamul kernel: [   58.240866] wlan0: deauthenticating
from 00:04:ed:45:65:df by local choice (reason=3)

That looks to me like avahi is all confused and tripping over what
openrc & wicd do properly. I'd say the root cause is a change in
kernel-3.2.6 that was not tested against.

So, what's the next debugging step?


-- 
Alan McKinnnon
alan.mckinnon@gmail.com




  reply	other threads:[~2012-02-26 15:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-26  9:35 [gentoo-user] Why is dhcpcd starting by itself? Willie WY Wong
2012-02-26 13:32 ` Dale
2012-02-26 13:45   ` Willie WY Wong
2012-02-26 13:35 ` [gentoo-user] " walt
2012-02-26 14:17   ` Willie WY Wong
2012-02-26 16:28     ` walt
2012-02-26 14:19 ` [gentoo-user] " Willie WY Wong
2012-02-26 15:31   ` Alan McKinnon [this message]
2012-02-26 18:19     ` Willie WY Wong
2012-02-26 16:52   ` Dan Johansson
2012-02-26 16:57     ` Dan Johansson
2012-02-27  1:00       ` Dale
2012-02-27 12:35         ` Willie WY Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120226173123.3e9bb86d@khamul.example.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox