From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id yJCEGNJAbGZGNgAA62LTzQ:P1 (envelope-from ) for ; Fri, 14 Jun 2024 13:08:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yJCEGNJAbGZGNgAA62LTzQ (envelope-from ) for ; Fri, 14 Jun 2024 15:08:34 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718370514; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=IcbkcvMHKLiJSltBtS/IszNaGDbF+aIzz8wcn23aaBg=; b=nrgmzXbs6rU+r/o2NJHae1YXNFw+HMsK+w6hX2AiBnlv/fw84t/LdavUPFOG2NxRy4gLoT jeq0wR4tdnNPu/8UPAcPPVDAsfoKXBAd+Xj8027H2RRi4A5gw60RmA1nOm20hu7kilfzNV pAClxoiWA2yz2MnB87xDq2k5ng7tqJ6cwW1Evqj/aoR+CdOSpzqHjoYG1p2Aw0IonYwGWM SDnGWUK0I4Ov3lqoKTeCd0lf9V5w11P4HeQwWdbDAqmbFJMv87ZFIVYekmBRt3KD81AhTY gU7OEUawNwR7bqUyodKlqjWI6H2suqCJJtB3AGgtKKGJ0F4O7f+xJzoYNYtGPQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718370514; a=rsa-sha256; cv=none; b=TqbvtYjM4Mry2T9gdmnfngy5zEzhgEj9tLqDaLlCS/b75y8WnZ4E5SkRpl9Z7xYk8aqnTn RryNXwfTQUH8PcQL6+lMB5m1wdREDtdHNa/lvrH4/FyfWcZZfH3hSPGddHZjr3r+jvnG1b FOH2Z9WE9UVxqfsAfMLjzjehc7C+4hG9CLvGn+RJ8kVB5dyJ8BRghiCYdaJb1tN7iqSD58 7+jqw1HchracNfNxj8GRyfrRLZ1UUy7EvKAoWfa/x7Z4eYi/BPlje2dHztWsyl+HbUhZXs P8vkiBETz5N9HmSUTd6zVftcDTsZ98HIOapz5jzFNZTOeSfax3wYkNWdB4Rbew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" 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 D7F4D76938 for ; Fri, 14 Jun 2024 15:08:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sI6f3-00085n-V4; Fri, 14 Jun 2024 09:08:10 -0400 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 1sI6f2-00085O-3U for guix-devel@gnu.org; Fri, 14 Jun 2024 09:08:08 -0400 Received: from 0.a.mx.0xe1.net ([46.4.214.66] helo=ns13.heimat.it) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sI6ey-00060a-Ut for guix-devel@gnu.org; Fri, 14 Jun 2024 09:08:07 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 181C030081F for ; Fri, 14 Jun 2024 13:08:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3etijB2qnM8S for ; Fri, 14 Jun 2024 13:07:59 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.171.217]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 526E530081A for ; Fri, 14 Jun 2024 13:07:59 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id E5C113395DCC for ; Fri, 14 Jun 2024 15:07:58 +0200 (CEST) Received: (nullmailer pid 27113 invoked by uid 1000); Fri, 14 Jun 2024 13:07:58 -0000 From: Giovanni Biscuolo To: guix-devel@gnu.org Subject: Re: networking service not starting for a network-route setting (was for network with netlink-response-error errno:17) In-Reply-To: <87bk43iy40.fsf@xelera.eu> Organization: Xelera.eu References: <87bk43iy40.fsf@xelera.eu> Date: Fri, 14 Jun 2024 15:07:57 +0200 Message-ID: <87bk43ekpe.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.95 X-Spam-Score: -4.95 X-Migadu-Queue-Id: D7F4D76938 X-Migadu-Scanner: mx11.migadu.com X-TUID: mPB5Z3Apa0sX --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, OK I've managed to fix my networking problem, here is how I did it... Giovanni Biscuolo writes: [...] > The networking service is failing with this message (manually copied > here, please forgive mistakes): now that I can connect via SSH, I can copy the actual messages: =2D-8<---------------cut here---------------start------------->8--- Jun 14 11:28:32 localhost vmunix: [ 6.258520] shepherd[1]: Starting serv= ice networking... Jun 14 11:28:32 localhost vmunix: [ 6.472949] shepherd[1]: Service netwo= rking failed to start. Jun 14 11:28:32 localhost vmunix: [ 6.474842] shepherd[1]: Exception cau= ght while starting networking: (no-such-device "swws-bridge") Jun 14 11:28:32 localhost vmunix: [ 6.492344] shepherd[1]: Starting serv= ice networking... Jun 14 11:28:32 localhost vmunix: [ 6.509652] shepherd[1]: Exception cau= ght while starting networking: (%exception #<&netlink-response-error errno:= 17>) Jun 14 11:28:32 localhost vmunix: [ 6.510034] shepherd[1]: Service netwo= rking failed to start. =2D-8<---------------cut here---------------end--------------->8--- > The strange thing is that all the configured interfaces: eno1 I truncated the list, the actual list of interfaces was (and is): =2D-8<---------------cut here---------------start------------->8--- g@ane ~$ ip addre ls 1: lo: mtu 65536 qdisc noqueue state UNKNO= WN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope global lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host=20 valid_lft forever preferred_lft forever 2: eno1: mtu 1500 qdisc pfifo_fast state = UP group default qlen 1000 link/ether b4:2e:99:c5:cc:1c brd ff:ff:ff:ff:ff:ff inet 162.55.88.253/24 scope global eno1 valid_lft forever preferred_lft forever inet6 fe80::b62e:99ff:fec5:cc1c/64 scope link=20 valid_lft forever preferred_lft forever 3: swws-bridge: mtu 1500 qdisc noqueue st= ate UP group default qlen 1000 link/ether 52:54:00:9b:c6:63 brd ff:ff:ff:ff:ff:ff inet 192.168.133.1/24 brd 192.168.133.255 scope global swws-bridge valid_lft forever preferred_lft forever 4: vnet0: mtu 1500 qdisc noqueue master s= wws-bridge state UNKNOWN group default qlen 1000 link/ether fe:54:00:ff:e2:fd brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:feff:e2fd/64 scope link=20 valid_lft forever preferred_lft forever 5: vnet1: mtu 1500 qdisc noqueue master s= wws-bridge state UNKNOWN group default qlen 1000 link/ether fe:54:00:41:53:1e brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fe41:531e/64 scope link=20 valid_lft forever preferred_lft forever 6: vnet2: mtu 1500 qdisc noqueue master s= wws-bridge state UNKNOWN group default qlen 1000 link/ether fe:54:00:3d:17:90 brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fe3d:1790/64 scope link=20 valid_lft forever preferred_lft forever 7: vnet3: mtu 1500 qdisc noqueue master s= wws-bridge state UNKNOWN group default qlen 1000 link/ether fe:54:00:64:81:8f brd ff:ff:ff:ff:ff:ff inet6 fe80::fc54:ff:fe64:818f/64 scope link=20 valid_lft forever preferred_lft forever =2D-8<---------------cut here---------------end--------------->8--- > Please find below the relevant parts of the configuration of my host. > > As you can see I've installed a libvirt daemon service (it is working) > with an autostarted (by libvirt) bridge interface named "swws-bridge" [...] > --8<---------------cut here---------------start------------->8--- [...] sorry I missed to add some relevant definitions I have at the start of my config.scm file: (define ane-wan-device "eno1") (define ane-wan-ip4 "162.55.88.253") (define ane-wan-gateway "162.55.88.193") (define swws-bridge-name "swws-bridge") > (list > (service static-networking-service-type > (list (static-networking > (addresses (list (network-address > (device ane-wan-device) > (value (string-append ane-wan-ip4 "/24"))))) > (routes (list (network-route > (destination "default") > (gateway ane-wan-gateway)) the next one the problematic part of my static-networking configuration: > ;; ip route add 10.1.2.0/24 dev swws-bridge via 192.168.133.12 > (network-route > (destination "10.1.2.0/24") ;; lxcbr0 net > (device swws-bridge-name) > (gateway "192.168.133.12")))) > ;; on node002 I've commented out this network-route part and now the networking service is running fine at boot (and after a restart obviously) I think that the missing "swws-bridge" interface when the static-network is activates is blocking all further networking service startup, including restarts after "swws-bridge" has been created by the libvirtd service. After the "swws-bridge" interface has been created this is the routing table: =2D-8<---------------cut here---------------start------------->8--- g@ane ~$ ip route ls default via 162.55.88.193 dev eno1=20 162.55.88.0/24 dev eno1 proto kernel scope link src 162.55.88.253=20 192.168.133.0/24 dev swws-bridge proto kernel scope link src 192.168.133.1= =20 =2D-8<---------------cut here---------------end--------------->8--- Obviously if I "manually" add the route I'm able to ping hosts on the 10.1.2.0/24 network: =2D-8<---------------cut here---------------start------------->8--- g@ane ~$ sudo ip route add 10.1.2.0/24 dev swws-bridge via 192.168.133.12 g@ane ~$ ip route ls default via 162.55.88.193 dev eno1=20 10.1.2.0/24 via 192.168.133.12 dev swws-bridge=20 162.55.88.0/24 dev eno1 proto kernel scope link src 162.55.88.253=20 192.168.133.0/24 dev swws-bridge proto kernel scope link src 192.168.133.1= =20 g@ane ~$ ping 10.1.2.1 PING 10.1.2.1 (10.1.2.1): 56 data bytes 64 bytes from 10.1.2.1: icmp_seq=3D0 ttl=3D64 time=3D0.341 ms 64 bytes from 10.1.2.1: icmp_seq=3D1 ttl=3D64 time=3D0.232 ms 64 bytes from 10.1.2.1: icmp_seq=3D2 ttl=3D64 time=3D0.544 ms ^C--- 10.1.2.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev =3D 0.232/0.372/0.544/0.129 ms =2D-8<---------------cut here---------------end--------------->8--- ...but I would like the route be automatically added at boot time and not have to remember to add it "manually" after a reboot. Please how can I specify that "swws-bridge" is a dependency for the networking service and make that service wait for that interface to come up? I know there is a (requirement ) field in static-networking but "swws-bridge" is not a Shepherd service: do I have to use "libvirtd" as my static-networking requirement? [...] Happy hacking! Gio' =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmZsQK0MHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkS6aYQAMfeg/PYk+5asHZ9jPegBW47gmjT+rLI9Phv1oUi OlcU2tsXG7c1jhKPC++7WlYMRmgdZrRc55b7F7xPjcOC2hZID32TyVseWxMO054f x8Tcrl+wigtuZs+89sdNGiehgd1nVXbNAdOk0aVyHfDFlQDFgKSDFOThEDEtegVW CPysNr0U7ZIsS3iUwIw50myGQWL1HJ/2dX09uMIjV6aoW69jL28eNqCZ0YJysBf5 Qbc9BS/0kgpkcGoZKR8XRgbI91wC+mY9Hk438Zs/+ZgFeReT8VJ7G5nS+PLnAKnZ WSMQxzYS7J0vphOM9VxdHUPuRKdxv5cTaHAy6lf1lRZZRjJuAZlTvl7NxqUgl70O /P1xvZiyU66c+U8NFiauJWmADbigCBZ+vDBWfhv035LjSMUX9hoA7EzJoCqym3j2 OWXe8qkQcpNIVp8e4c+GZQwb70BnU+z35N+hGys7kIz07vZJ/e8rtHMMQGpdxTw6 AhqG6Q6P58SWYWAtF7zlj4Yu9r4bZrn3VlKpIAjOZlXObj+lFbG9qHaXarNWDmbl 0Mc/kzsASDwggVI7mEKtkiXDyoopFHXmO57aQ4FRFAQkDqGd00jyOLh805xmX9fm 7biFPHIyJp6cGFGDkWgaeW9GXOJg+e2e4o3gBg6U0KehD49XP3Sa7LgXfB2LOKyH 2NmV =/uv1 -----END PGP SIGNATURE----- --=-=-=--