From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 15 08:50:55 2021 Received: (at 52511) by debbugs.gnu.org; 15 Dec 2021 13:50:55 +0000 Received: from localhost ([127.0.0.1]:60555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxUgI-00020i-Ug for submit@debbugs.gnu.org; Wed, 15 Dec 2021 08:50:55 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38802) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxUgH-00020W-BK for 52511@debbugs.gnu.org; Wed, 15 Dec 2021 08:50:53 -0500 Received: from [2001:470:142:3::e] (port=49302 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxUg4-0007Qb-EQ; Wed, 15 Dec 2021 08:50:47 -0500 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=l8N1u9bCwO0ZltCVc0UbSZhcXv21vW4tRWeWpSJMLoA=; b=jfxLdZQI4cmCgUngaIl2 a8OoNOX5fl9mlAVl0CH6jYzGJ1Ytf7PVE4yiZ3Fz6Gd8DDo3z3wCMhDNbALUL3SyzhxHvv/GAhABj qd17DYwSNiQ2UpNqL96iKqLXZ2kQBcSx7dyZlud86or48G7vGw5oay5dn/a7+0tZJrjy6ObqaQC5v qt+5H1Zm964ESggOQhn3m5DiKJGe2MUteA8gi1fsLO4iBv46HS4VIWbVdia7YGMs18x6cAEZvAtx3 XV2NJlCfUUchf1/faADjzxxJ9uYlguy/1MEmeNlX+SRIj0aO4qRzC0KxDQBV3oMAvcj5tUqPXsvpS LZChJZqBYteIvA==; Received: from lfbn-lyo-1-236-245.w86-202.abo.wanadoo.fr ([86.202.80.245]:48388 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxUg2-0008OI-KN; Wed, 15 Dec 2021 08:50:38 -0500 From: Mathieu Othacehe To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#52511: service networking provided more than once References: <87czlyj9y7.fsf@gnu.org> <87ee6evvy3.fsf@gnu.org> Date: Wed, 15 Dec 2021 14:50:35 +0100 In-Reply-To: <87ee6evvy3.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 15 Dec 2021 14:28:36 +0100") Message-ID: <875yrqj7tg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52511 Cc: 52511@debbugs.gnu.org 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: -3.3 (---) Hey, > In this particular case, you could/should have a single > =E2=80=98static-networking=E2=80=99 with multiple addresses: > > (static-networking > (addresses > (list (network-address =E2=80=A6) > (network-address =E2=80=A6))) > (routes =E2=80=A6)) Oh, I see. There's still something problematic: --8<---------------cut here---------------start------------->8--- ;; Connection to the DMZ for public access ;; This is a 10G port. (static-networking-service "eno2" "141.80.181.40" #:netmask "255.255.255.0" #:gateway "141.80.181.1") ;; Connection to build nodes (static-networking-service "eno1" "141.80.167.131" #:netmask "255.255.255.192") --8<---------------cut here---------------end--------------->8--- The above configuration used to create two distinct shepherd services: networking-eno1 and networking-eno2. We now have the aforementioned error because those two interfaces are now provisioning 'networking, breaking compatibility. Browsing the code, I also found: --8<---------------cut here---------------start------------->8--- (service static-networking-service-type (list %loopback-static-networking ;; QEMU user-mode networking. To get "eth0", you need ;; QEMU to emulate a device for which Mach has an ;; in-kernel driver, for instance with: ;; --device rtl8139,netdev=3Dnet0 --netdev user,id=3Dnet0 %qemu-static-networking)) --8<---------------cut here---------------end--------------->8--- which made me think that creating a distinct static-networking record per interface was the way to go. Thanks, Mathieu