From debbugs-submit-bounces@debbugs.gnu.org Mon May 15 05:31:13 2023 Received: (at submit) by debbugs.gnu.org; 15 May 2023 09:31:13 +0000 Received: from localhost ([127.0.0.1]:42760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyUXw-0006WY-Ly for submit@debbugs.gnu.org; Mon, 15 May 2023 05:31:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:49316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyUXu-0006WQ-U1 for submit@debbugs.gnu.org; Mon, 15 May 2023 05:31:11 -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 1pyUXs-0002wb-C6 for bug-guix@gnu.org; Mon, 15 May 2023 05:31:10 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyUXn-0003ap-ID for bug-guix@gnu.org; Mon, 15 May 2023 05:31:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=sf0PmdCOqc0k4xHwwI1tObNVbynUJJIvhG22U+poB8s=; b=rc5DxcE1YCdwhVyc7yidc0a726ZicTHWPswP3anGQDB2epuw3S+arsOU KHMjjSanJ7vF+Vb3ABunl7frNL4YzQ7xMl3pIWHSEZTdGNwYTEbmQy9Qr EIioii4HzEcAyOGn4HGO4e0rL14OWELx/ZLX72++nZr2/EbkkXIExLPgT 8=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=ludovic.courtes@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="5.99,276,1677538800"; d="scan'208";a="56075926" Received: from unknown (HELO ribbon) ([193.50.110.247]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2023 11:30:58 +0200 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: bug-guix@gnu.org Subject: Static networking should wait for interfaces to be up X-Debbugs-Cc: Julien Lepiller X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 26 =?utf-8?Q?Flor=C3=A9al?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Fusain X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 15 May 2023 11:30:58 +0200 Message-ID: <87pm726iwd.fsf@inria.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.134.164.104; envelope-from=ludovic.courtes@inria.fr; helo=mail3-relais-sop.national.inria.fr 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi! With shepherd 0.10.0 starting services in parallel, I observed =E2=80=98networking=E2=80=99 (from =E2=80=98static-networking-service-type= =E2=80=99) starting too early, before the corresponding interfaces were available: --8<---------------cut here---------------start------------->8--- [ 21.863249] shepherd[1]: Service udev started. [ 21.863414] shepherd[1]: Service udev running with value 196. [ 21.865686] shepherd[1]: Starting service networking... [ 21.865822] shepherd[1]: Starting service file-system-/boot/efi... [ 21.986025] shepherd[1]: Exception caught while starting #< 7f9= bf08434e0>: (no-such-device "eno1" [ 22.738237] udevd[196]: starting eudev-3.2.11 [ 22.767830] udevd[196]: no sender credentials received, message ignored [...] [ 23.562275] tg3 0000:05:00.0 eth0: Tigon3 [partno(BCM95720) rev 5720000]= (PCI Express) MAC address b8:cb:2 [ 23.562290] tg3 0000:05:00.0 eth0: attached PHY is 5720C (10/100/1000Bas= e-T Ethernet) (WireSpeed[1], EEE[1 [ 23.562298] tg3 0000:05:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF= [1] TSOcap[1] [ 23.562305] tg3 0000:05:00.0 eth0: dma_rwctrl[00000001] dma_mask[64-bit] [ 23.596221] tg3 0000:05:00.1 eth1: Tigon3 [partno(BCM95720) rev 5720000]= (PCI Express) MAC address b8:cb:2 [ 23.596234] tg3 0000:05:00.1 eth1: attached PHY is 5720C (10/100/1000Bas= e-T Ethernet) (WireSpeed[1], EEE[1 [ 23.596242] tg3 0000:05:00.1 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF= [1] TSOcap[1] [ 23.596249] tg3 0000:05:00.1 eth1: dma_rwctrl[00000001] dma_mask[64-bit] [ 23.599725] tg3 0000:05:00.0 eno1: renamed from eth0 [ 23.613468] iTCO_vendor_support: vendor-support=3D0 [ 23.619114] iTCO_wdt iTCO_wdt: Found a Intel PCH TCO device (Version=3D6= , TCOBASE=3D0x0400) [ 23.619327] iTCO_wdt iTCO_wdt: initialized. heartbeat=3D30 sec (nowayout= =3D0) [ 23.645196] tg3 0000:05:00.1 eno2: renamed from eth1 [ 23.727153] Error: Driver 'pcspkr' is already registered, aborting... [ 23.738237] ipmi_si dmi-ipmi-si.0: Removing SMBIOS-specified kcs state m= achine in favor of ACPI [ 23.738239] ipmi_si: Adding ACPI-specified kcs state machine [ 23.738273] ipmi_si: Trying ACPI-specified kcs state machine at i/o addr= ess 0xca8, slave address 0x20, irq [ 23.926348] shepherd[1]: Service file-system-/boot/efi has been started. [ 23.927164] shepherd[1]: Service networking failed to start. --8<---------------cut here---------------end--------------->8--- Before doing =E2=80=98addr-add=E2=80=99 in =E2=80=98network-set-up/linux=E2= =80=99, should we wait for the interface to show up, by calling =E2=80=98get-links=E2=80=99 from Guile= -Netlink or something like that? Ludo=E2=80=99.