GNU bug report logs

#68595 VLANs in static-networking-service-type hangs shepherd

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #11 received at 68595@debbugs.gnu.org (full text, mbox, reply):

Received: (at 68595) by debbugs.gnu.org; 12 Feb 2024 09:56:04 +0000
From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 12 04:56:04 2024
Received: from localhost ([127.0.0.1]:44362 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1rZT2h-00068P-Kh
	for submit@debbugs.gnu.org; Mon, 12 Feb 2024 04:56:03 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58186)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@gnu.org>) id 1rZT2f-00067a-GM
 for 68595@debbugs.gnu.org; Mon, 12 Feb 2024 04:56:02 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@gnu.org>)
 id 1rZT2H-0002Jr-FF; Mon, 12 Feb 2024 04:55:37 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=Y5gd7AMXK/6JioBRRK5o2EfKfcXL6eAcl2lK7h754DY=; b=BmG18ZET/ET6jTd8dzuf
 9HvtU8k95n/gTrkBnFXqGfoIpcdHwqhLGscc2D50ZeXS+YCGviuAVgbt8oiD6qo0Sppjnw5YtlPHb
 NtPxsw6vUPf1/8ppqo32RzwoYHrkjx+8V6ezTdDPuh7gLax3V3Q2rQp+yApLd8kL6bHwrlKU63xqO
 YGtIIucIKMaPpjJqK+XA5IgByevPt2vm2OiZmj0cHPWD7ovpbLz4/v/iGiX3j98vwj6AoL0bieKxB
 o8ZtcZjygbC87GAsUC2hADa+568oF98z+trOfT9yKacTXHc6GQatHTK3TMGzwhKfp0YsFCUuJdrWI
 olj2xwr1pEkMbQ==;
From: Ludovic Courtès <ludo@gnu.org>
To: Lars Rustand <rustand.lars@gmail.com>
Subject: Re: bug#68595: VLANs in static-networking-service-type hangs shepherd
In-Reply-To: <87v87pc7ul.fsf@yoga.mail-host-address-is-not-set> (Lars
 Rustand's message of "Fri, 19 Jan 2024 20:12:24 +0100")
References: <87v87pc7ul.fsf@yoga.mail-host-address-is-not-set>
Date: Mon, 12 Feb 2024 10:55:32 +0100
Message-ID: <875xyugg6j.fsf@gnu.org>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68595
Cc: 68595@debbugs.gnu.org, Julien Lepiller <julien@lepiller.eu>,
 Alexey Abramov <levenson@mmer.org>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
Hi,

Lars Rustand <rustand.lars@gmail.com> skribis:

> Like the title says, if you add any VLAN in a
> static-networking-service-type it seems like the whole shepherd daemon
> freezes up and anything that depends on it stops responding.
> Additionally the networking does not get fully configured either.
>
> After configuring a VLAN `herd status`, `herd restart networking` and
> any other herd command hangs forever with no output. Even reboot is not
> working. The only remedy is to restart the system using the power
> button, but even after the restart the networking service still fails to
> start.

Ouch.  Could you check what /var/log/messages reports?

Once you’ve reproduced the hang, could you attach GDB to shepherd and
get a backtrace?

  gdb -p 1
  bt

(I recommend doing that in a VM rather than on your main machine!)

> 1. Add a static network with a VLAN to your system config (see below for
> minimal example)
> 2. Reconfigure your system
> 3. Restart the networking service with `sudo herd restart networking`
> 4. Observe that herd does not finish
> 5. Try to run `herd status`, `guix system reconfigure`, or `sudo reboot`.
> 6. Observe that none of the commands seem to have any effect, and that
> they hang indefinitely with no output
>
> (service static-networking-service-type
>   (list (static-networking
>          (links
>           (list (network-link
>                  (name "myvlan")
>                  (type 'vlan)
>                  (arguments '((id . 3)
>                               (link . "eth0"))))))
>          (addresses
>           (list (network-address
>                  (device "myvlan@eth0")
>                  (value "192.168.0.2/24")))))))

You mentioned in your other message that the example from the manual
works fine.  Could you try and reduce your config until you find which
bit makes it fail?

Cc’ing Alexey and Julien who may know more.

Thanks,
Ludo’.




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Tue Sep 9 16:25:50 2025; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.