From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YItAMwg3imSe9QAASxT56A (envelope-from ) for ; Wed, 14 Jun 2023 23:54:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iHD3Mgg3imTmIwAAauVa8A (envelope-from ) for ; Wed, 14 Jun 2023 23:54:16 +0200 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 8BDDB26E7 for ; Wed, 14 Jun 2023 23:54:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q9YRH-0007Oq-0r; Wed, 14 Jun 2023 17:54:03 -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 1q9YRG-0007OZ-A1 for bug-guix@gnu.org; Wed, 14 Jun 2023 17:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q9YRG-0000NE-0r for bug-guix@gnu.org; Wed, 14 Jun 2023 17:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q9YRF-00009M-Tq for bug-guix@gnu.org; Wed, 14 Jun 2023 17:54:01 -0400 Subject: bug#63516: Static networking should wait for interfaces to be up Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Wed, 14 Jun 2023 21:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 63516 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63516-done@debbugs.gnu.org Cc: Julien Lepiller Mail-Followup-To: 63516@debbugs.gnu.org, ludo@gnu.org, ludovic.courtes@inria.fr Received: via spool by 63516-done@debbugs.gnu.org id=D63516.1686779619540 (code D ref 63516); Wed, 14 Jun 2023 21:54:01 +0000 Received: (at 63516-done) by debbugs.gnu.org; 14 Jun 2023 21:53:39 +0000 Received: from localhost ([127.0.0.1]:45660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9YQs-00008e-Lw for submit@debbugs.gnu.org; Wed, 14 Jun 2023 17:53:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9YQp-00008Q-SQ for 63516-done@debbugs.gnu.org; Wed, 14 Jun 2023 17:53:36 -0400 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 ) id 1q9YQk-0000FO-KW; Wed, 14 Jun 2023 17:53:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=DcFrp+c4Pw+HukaPCMxt6ek8YG96RwGOKb7t8dYFZMw=; b=klLeIUV4ye19PxZtdkYo mtZJXoqZlewcB1MYim2ubwDJo8cLJfb0zpW1MdC6yPOFivgMZZYmhpPCTKyTzzdASVuLQUxb/euiw dAdrJqaCnj7pa5m51seSkfW39KNUsLAcOIiNFU3qP38+QeSVTlMBIaOdEu9C7UVaZsKr657PDKWwh 53Uk8zfofCPKxoU0hVongB+GXuBDgdQVxjEV6m0Va82mmzxfQwLhLsHImVzatosrQFq0TMrDJtQs3 8R6HZwALily/hiFl/7d+svkgcYTRWHOl+15x9ugs/av68wV5ctoyX2SQji7eUnn8T6sC87DpKNwTl N3qZSlslyUaEwg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9YQk-00027O-7a; Wed, 14 Jun 2023 17:53:30 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87pm726iwd.fsf@inria.fr> <871qjawqpt.fsf@gnu.org> Date: Wed, 14 Jun 2023 23:53:27 +0200 In-Reply-To: <871qjawqpt.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 21 May 2023 01:03:26 +0200") Message-ID: <878rclpv6w.fsf@gnu.org> 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 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686779656; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: 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=DcFrp+c4Pw+HukaPCMxt6ek8YG96RwGOKb7t8dYFZMw=; b=d042vg9mAzOSjaw/8wPEDo9UnVZ4Vv9HdnzOpFDu9Zi+dM1MMW6sJOrI44tna9+gDu5fWs ThqBoqHtU0HjKoxIB/xBfBe5s1oCfVLfGCVQQaJBPZnsRiBsWVuipBfFHQWTtIwzjKHcCN 1p7U9U3s1maVb/oMazvRZMkskoKszZviZSXu9wylc/tVw2xkdXtBj2qBWDqT/mZopLHRWo PMhHLa1irPMi8p++U8n94cPyzo+I788YMZlKewCSCmT57X4v2p3mcqQXlxSDBfMrzyRFci xzsNOixaPQlWIo/A4AYXyRPD7g/i6ef0hYumpQubhOQszfSY2O2R0KHVVCZUdw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=klLeIUV4; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686779656; a=rsa-sha256; cv=none; b=iuynrtjDeZq0QrGW2dC8wD2xZr2ofb37NSkh1sMx24NptqcPjrnvc2gNm4mjJw62rvcYqg m4eDl3DS9xE2qyHOkYduo2uQ4MXJXVf6C5cqw19OOln6y4ZmIlmkqDxyMFSA7rKZHKgSUQ Us/SoAii1GyUsdluQyY5Niy/htcR34zvr7Ss/ApBccMFkiUdYgc+HqnjkEQPjX75DFPkCn +92bagDLThUo6QsSggHTHn3FjMskJFGwraRcLdRJY+7w3IxoBlT3tKdRqgETEvmhuIXPc0 3XxkeSa0BiDa7nfpmAR+bLk/OxY07qzujpldXcy+BW6xnU3ysWFXyxpsuEjQgw== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=klLeIUV4; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 8BDDB26E7 X-Spam-Score: -4.13 X-TUID: LJ8KeuG02LyZ Ludovic Court=C3=A8s skribis: > Ludovic Court=C3=A8s skribis: > >> 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 Gu= ile-Netlink or >> something like that? > > Below is a simple workaround. How does that sound? > > A better fix would be to poll(2) on the underlying AF_NETLINK socket. > In fact, we could also implement something like systemd=E2=80=99s > =E2=80=98network-online.target=E2=80=99 by doing that. For that we=E2=80= =99d need Guile-Netlink > to let us create SOCK_NONBLOCK sockets and to use real ports instead of > raw file descriptors; Fibers would then take care of the rest. Pushed the =E2=80=9Cbetter fix=E2=80=9D as 26602f4063a6e0c626e8deb3423166bc= d0abeb90, building upon =E2=80=98wait-for-link=E2=80=99 from Guile-Netlink 1.2. Thank you Julien for the Guile-Netlink release! Ludo=E2=80=99.