From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-135587-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1S1g6P-0004JW-Ex
	for garchives@archives.gentoo.org; Sun, 26 Feb 2012 15:33:33 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 269CCE11D0;
	Sun, 26 Feb 2012 15:33:20 +0000 (UTC)
Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id B62EDE11BA
	for <gentoo-user@lists.gentoo.org>; Sun, 26 Feb 2012 15:31:40 +0000 (UTC)
Received: by wibhi8 with SMTP id hi8so2663731wib.40
        for <gentoo-user@lists.gentoo.org>; Sun, 26 Feb 2012 07:31:40 -0800 (PST)
Received-SPF: pass (google.com: domain of alan.mckinnon@gmail.com designates 10.180.86.105 as permitted sender) client-ip=10.180.86.105;
Authentication-Results: mr.google.com; spf=pass (google.com: domain of alan.mckinnon@gmail.com designates 10.180.86.105 as permitted sender) smtp.mail=alan.mckinnon@gmail.com; dkim=pass header.i=alan.mckinnon@gmail.com
Received: from mr.google.com ([10.180.86.105])
        by 10.180.86.105 with SMTP id o9mr20661311wiz.4.1330270300077 (num_hops = 1);
        Sun, 26 Feb 2012 07:31:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=date:from:to:subject:message-id:in-reply-to:references:organization
         :x-mailer:mime-version:content-type:content-transfer-encoding;
        bh=8iIcerI8xmzCLu9cF7fKdXheSQ7yF8pIdIG2UBOemEk=;
        b=Xq5JoHp+tgImgco3+oWeQNylEPktqLLLiUfUfqQevbRMOEaAx7vKqS1hxZJDP7Ysb7
         v5XMmspByqAM0HrmhyPg3uJQABrBsN1mIo0opRZiPeUX7kIzvuEUCXXez/RybtAhKl0t
         1d/vcNrsqFMDXWytTY3LbE5TzzxDlr4Hw92e0=
Received: by 10.180.86.105 with SMTP id o9mr16532638wiz.4.1330270299964;
        Sun, 26 Feb 2012 07:31:39 -0800 (PST)
Received: from khamul.example.com (196-215-57-8.dynamic.isadsl.co.za. [196.215.57.8])
        by mx.google.com with ESMTPS id 9sm17683918wid.2.2012.02.26.07.31.37
        (version=SSLv3 cipher=OTHER);
        Sun, 26 Feb 2012 07:31:39 -0800 (PST)
Date: Sun, 26 Feb 2012 17:31:23 +0200
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Why is dhcpcd starting by itself?
Message-ID: <20120226173123.3e9bb86d@khamul.example.com>
In-Reply-To: <20120226141954.GB2249@Gee-Mi-Ni>
References: <20120226093535.GA3460@Gee-Mi-Ni>
	<20120226141954.GB2249@Gee-Mi-Ni>
Organization: Internet Solutions
X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 54b55a7a-7e82-45c5-9480-7eaad2681f8f
X-Archives-Hash: 442cf33528331b2d046d55472b964854

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