From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mAbpJ5nuqmWscwEAe85BDQ:P1 (envelope-from ) for ; Fri, 19 Jan 2024 22:50:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mAbpJ5nuqmWscwEAe85BDQ (envelope-from ) for ; Fri, 19 Jan 2024 22:50:17 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=XacIHjCx; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705701017; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=aQ9SGfLFEztu+uCDjMFFzOvhlWG0BLoTZCg1VBpYPaU=; b=SpyBGrFIaBv+fNzP9RQuLMp+eUt6LO1kNDkDQdjnlMhXd3Xf/8g/x7dUr9Oge3jMgk1W5Q 1kyn3J1AAkOhFNxXoRIHXJpBH3Nmh1yXdCUYnt4a1J2mGjivRbuZes8bDpVajdvk1az1oO nT3EPo310wTvRtgpUUIRKyb7XVurP05zM2kii/AZp2ROdPUomAhMzuy9DTcqOI8brS1r+D 05KPl5z5Lm8eNTQ7lxQ+e2wnlPXMXgEL8nOoJBwjv7WLqQwSZ1vp00fiYqfDANHUoioIjf E/AfmZbQpI2xrz61tiApbjLNehMX7zxSFQn0UTZMmjn77N/8gqYjGQ5gozQA6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=XacIHjCx; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705701017; a=rsa-sha256; cv=none; b=ZanhISL3ukJtKuS5Q29PKxOtsedl4UbCggV4YV8AdKFSQPQ62O7ilCA1oyjQaG5OaGc63v 8XXd5SCeCxXdnPouP7tEZTydyQ/+efks3VWee9xHhEyQnEtZvh/TgvZcA7fPQKjGjG7/Cx cULOgOQJG+tLw9GLRZA4owOmQ0dnO80JkM56tXzbDaXlbO2qjhPZFLgp6l+wYk7n5Ov1qO jZAqcd8qFg1ArurccPgGsSIp6GV+EqL3wXs3m6ec0Yv8z0QksaZGX6w+noWaf3cCfWpalT WNL9fxS/Vj1WDKj5gfoM5M/J0A4YAtN/Q8aHIKn7xXKumXkx5suJreJFx1rvvQ== 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 6AA5541497 for ; Fri, 19 Jan 2024 22:50:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQwkU-0003jO-2G; Fri, 19 Jan 2024 16:50:02 -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 1rQwkS-0003iw-Jh for bug-guix@gnu.org; Fri, 19 Jan 2024 16:50:00 -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 1rQwkS-00050e-Bk for bug-guix@gnu.org; Fri, 19 Jan 2024 16:50:00 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rQwkU-0008BA-9N for bug-guix@gnu.org; Fri, 19 Jan 2024 16:50:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#68595: VLANs in static-networking-service-type hangs shepherd Resent-From: Lars Rustand Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 19 Jan 2024 21:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68595 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 68595@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170570095331368 (code B ref -1); Fri, 19 Jan 2024 21:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jan 2024 21:49:13 +0000 Received: from localhost ([127.0.0.1]:60224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQwjg-00089s-UH for submit@debbugs.gnu.org; Fri, 19 Jan 2024 16:49:13 -0500 Received: from lists.gnu.org ([2001:470:142::17]:57262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rQwjd-00089c-Ud for submit@debbugs.gnu.org; Fri, 19 Jan 2024 16:49:11 -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 1rQwjV-0003et-Kg for bug-guix@gnu.org; Fri, 19 Jan 2024 16:49:01 -0500 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQwjT-0004t4-EG for bug-guix@gnu.org; Fri, 19 Jan 2024 16:49:01 -0500 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-50e6ee8e911so1764627e87.1 for ; Fri, 19 Jan 2024 13:48:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705700937; x=1706305737; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=aQ9SGfLFEztu+uCDjMFFzOvhlWG0BLoTZCg1VBpYPaU=; b=XacIHjCxQqyky+QTzDlVKUUXvNqN0esYmONCFgLicpojjbIcX3FLKCWcfODUnEmINo UmixhHel9Yq5QROh0GWuqL+e7ZrSBePrhyaTh6h0b3lLi5BuIBVh0HJI2TqcOw6B1F9e QBwkAAibXg6xU/jPz0J0jqZPvDePpewTcM/U1HluOetGVlmT6E6w+NPmpLl5U/KITUXx YJMrbRqu9Cn1Mm2IRpDM5F+X4sFFZpv8ZHSBCGyZ4GtknTxl+4MSIsXixN8B12MMGNu9 47b9OusP+arojLs0qPK8Nn44Sz04MHFCDyyArNzqYq/nzNslmswUtnUVjdmpGWRhtZuo IRAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705700937; x=1706305737; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aQ9SGfLFEztu+uCDjMFFzOvhlWG0BLoTZCg1VBpYPaU=; b=FilgoPkhGjFRuBSrMdWL+VC4A1P7r/XOjB82iynfuvoY5I1WuJhKImjAdk9MbuoVwu F1EBv2VvXtMWmPUhvWSLSMSCGo+nWCT6H85zQr89nK3rEAkHCRzJmSVGXJ5TelRgiaLD V4qru9a344gae0a81D3o08n+bQ3jaffXeKWZsd6wcbg1vLaLbIb873cyPPiQjkN5aBAD 0U7zQG9M78UTraEnm/hKexRBOvAfdZ61G/k0dcdA0wp6gKIAfxAybMnr+S9zqEgo76GC uVWiLoSRE9N/zIixCM6jGJi8lHjoo+F+iICKZRoEayht47CS59/+n+WoqepJoTWDh1bh 0Pfw== X-Gm-Message-State: AOJu0YyrVV2jvTXvep7MaxDydFZAkPBw7m15vfI8VHBfBVU5oP8wa7bs sRgyUezFyXt3UyA4HeaE+EyRWvKH21LOucgmp1k11oip34VhVDfsiZp80ImyQ5g= X-Google-Smtp-Source: AGHT+IFlgXcx5chCQ57nY5b1Z9t18S+wimcvmRJhSo0CiSK9TxOinro76TlEoypbBoOPXhUBFyk6BA== X-Received: by 2002:ac2:4290:0:b0:50e:84f8:77dc with SMTP id m16-20020ac24290000000b0050e84f877dcmr145566lfh.111.1705700937291; Fri, 19 Jan 2024 13:48:57 -0800 (PST) Received: from localhost (78.79-160-60.customer.lyse.net. [79.160.60.78]) by smtp.gmail.com with ESMTPSA id dx5-20020a0565122c0500b0050e6451baf0sm1086502lfb.53.2024.01.19.13.48.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 13:48:56 -0800 (PST) User-agent: mu4e 1.10.8; emacs 30.0.50 From: Lars Rustand Date: Fri, 19 Jan 2024 20:12:24 +0100 Message-ID: <87v87pc7ul.fsf@yoga.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=rustand.lars@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 2.33 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: 2.33 X-Migadu-Queue-Id: 6AA5541497 X-TUID: gCSqsiMnX3O3 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--- 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> --8<---------------cut here---------------start------------->8--- (use-modules (gnu) (gnu services) (gnu services base) (gnu services networking) (gnu bootloader) (gnu bootloader grub) (gnu system) (gnu system file-systems) (gnu system accounts)) (operating-system (host-name "minimal") (users (cons* (user-account (name "lars") (group "users")) %base-user-accounts)) (services (cons* (service dhcp-client-service-type) ;; Commented out so you can uncomment it after booting the VM ;;(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"))))))) %base-services)) (bootloader (bootloader-configuration (bootloader grub-bootloader) (targets '("/dev/vda")))) (file-systems (cons* %base-file-systems))) --8<---------------cut here---------------end--------------->8---