From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id cD7oNmM8zWXQVAEAqHPOHw:P1 (envelope-from ) for ; Wed, 14 Feb 2024 23:19:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id cD7oNmM8zWXQVAEAqHPOHw (envelope-from ) for ; Wed, 14 Feb 2024 23:19:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mmer.org header.s=dkim header.b=Ed4RuyJt; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707949155; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=B+z5/5lN8zNXiKuqq9TLitx8yXyqqt6KVykvc+OiKZc=; b=Fc+kSQk2T9CLmrz+ySe3/iZxKsFi/HZ6r2Dy/YYBsdXYuVlm+P2UTwERWlwofa1tZw9y3L zFxsSny2wOC1bpS88jDMGoJLtbRa8lvwn9Bt85stDy+y8ytl1wpUUaXbIoNcaAPbYpzU/a NaJxdABsqNXDh7lOWyLIm+oDRTwcEWXH93LUP8V85noE91/asPHIuHy+mhOeTl58cPLthr 2MJIvAjUbUCHQaTlAnXYY98ga31r27n4l+RqTBB5HQOvFADwhu/MIu2gecgPKyp8eqGFTM hRtB2COGuNZo5Zk5ZQVu76pedPnkKoVobITptGk8Px1j0+juSwyngdAmAIC84A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mmer.org header.s=dkim header.b=Ed4RuyJt; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707949155; a=rsa-sha256; cv=none; b=a1jxfD05/rzEggUmveFqFXSsVYARgWJFTAwpbqIWgVmzFB3V4TnGaqZeL29hgBNR/GcV7S v1m2FJrpljSBVmF3pq3DXGHIbFB1uy05xnUK4LSIMBKilIXJzfRYDlWFVomj6dCj2sAq6l y8lFzShOO32HZvjFm73qWgeMV0TZKtrWpIhdL94MQkXZ4Z1EzjDTVkFLmDFStzS2+a2Lsz qNru977EsKIkRwD2DobliMEhDQ7WodlKZZjwf9jW3VRgkLdub0cWfzfyIUFocmjvOECAq7 kO5sIHRHPUO25VpoG93+v5jKG0rWGuXeHY/fp2SFt4lw+ZcXdKqgF0avYsSrAQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 97CAC4717D for ; Wed, 14 Feb 2024 23:19:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raNKw-0005h5-SH; Wed, 14 Feb 2024 17:02:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZUyR-0007KV-38 for bug-guix@gnu.org; Mon, 12 Feb 2024 06:59:47 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZUyQ-00059X-Rj for bug-guix@gnu.org; Mon, 12 Feb 2024 06:59:46 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZUyg-0004MX-TW for bug-guix@gnu.org; Mon, 12 Feb 2024 07:00:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68595: VLANs in static-networking-service-type hangs shepherd Resent-From: Alexey Abramov Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 12 Feb 2024 12:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68595 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Lars Rustand Cc: 68595@debbugs.gnu.org Received: via spool by 68595-submit@debbugs.gnu.org id=B68595.170773919316686 (code B ref 68595); Mon, 12 Feb 2024 12:00:02 +0000 Received: (at 68595) by debbugs.gnu.org; 12 Feb 2024 11:59:53 +0000 Received: from localhost ([127.0.0.1]:51653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZUyW-0004Kz-9O for submit@debbugs.gnu.org; Mon, 12 Feb 2024 06:59:52 -0500 Received: from mail.mmer.org ([178.22.65.174]:37990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZUyU-0004KO-Ud for 68595@debbugs.gnu.org; Mon, 12 Feb 2024 06:59:51 -0500 Received: from mail.mmer.org (localhost [127.0.0.1]) by mail.mmer.org (OpenSMTPD) with ESMTP id ddd6846b; Mon, 12 Feb 2024 11:59:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mmer.org; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=dkim; bh=74LMdbxeY35gqiQ9Ea8RPeVW8Vr99mX3lg680t jfz3I=; b=Ed4RuyJt5khe3VQ8qPMbOzZZ3uU72WJl4eXbjneibkZ67o8KTk98vM icrguPFVObJ7IWtFDJpeA8KMDD9N/FAIZj/Azq7WXRerdITbFEVZx92GgAn365Pe hxtzYQ0gBJKumLe7qbuXz2zAGKUq5Z7mCo/0054d0LJLnfc/bCisw= Received: from delta.lan (i60212.upc-i.chello.nl [62.195.60.212]) by mail.mmer.org (OpenSMTPD) with ESMTPSA id cf7d2fc7 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 12 Feb 2024 11:59:27 +0000 (UTC) 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 12:59:26 +0100 Message-ID: <87r0hh28rl.fsf@delta.lan> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 14 Feb 2024 17:02:37 -0500 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Alexey Abramov From: Alexey Abramov via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.97 X-Spam-Score: -5.97 X-Migadu-Queue-Id: 97CAC4717D X-Migadu-Scanner: mx11.migadu.com X-TUID: l31PCKmBlxnZ Hi Lars, Lars Rustand writes: > 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. > > VLANs are seemingly created, but no addresses are created. > > Steps to reproduce: > > 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 > > --8<---------------cut here---------------start------------->8--- > (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"))))))) > --8<---------------cut here---------------end--------------->8--- I see, Could you please, replace the device name to "myvlan" and not "myvlan@eth0" in the network-address. Even though ip link (iproute2) shows you 'myvlan@eth0' this is not an actual name of the interfaces. > Alternatively here are the reproduction steps using VM: > > 1. Build a qcow2 image, make sure there is enough space to reconfigure > the system. Use --save-provenance so you have the config inside the > vm so you can reconfigure later. > `guix system image --image-type=qcow2 --image-size=30G --save-provenance minimal.scm` > 2. Copy the qcow image to a writable directory. > 3. Start up the vm. > ``` > sudo qemu-system-x86_64 \ > -nic user,model=virtio-net-pci \ > -enable-kvm -m 2048 \ > -device virtio-blk,drive=myhd \ > -drive > if=none,file=1a7wi5mgcy3wrsx6pcnag6qjbb87djwl-image.qcow2,id=myhd > ``` > 4. Edit /run/current-system/configuration.scm and uncomment the static > networking. > 5. Reconfigure the system. > 6. Try to restart the networking service. `herd restart networking` > 7. The command will hang infinitely. Cancel it. > 8. Check the network interfaces. The VLAN interface will have been > created, but it will not have any address. > 9. The aforementioned commands will all be unresponsive now. > 10. If you reboot your VM you will see that the networking service is > failed at startup, and if you try to restart the service you will get > an error: #<&netlink-response-error errno: 17> > We need to improve our error messaging. This means that the interface is exist. -- Alexey