From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EAGUGXpLHGTsvQAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 13:52:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cFydGHpLHGSTvAAAG6o9tA (envelope-from ) for ; Thu, 23 Mar 2023 13:52:10 +0100 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 0FDA0D5B4 for ; Thu, 23 Mar 2023 13:52:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pfKQG-0005J2-Q8; Thu, 23 Mar 2023 08:52:05 -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 1pfKQE-0005Ih-P0 for bug-guix@gnu.org; Thu, 23 Mar 2023 08:52: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 1pfKQE-0005PL-Gd for bug-guix@gnu.org; Thu, 23 Mar 2023 08:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pfKQE-0006MX-1J for bug-guix@gnu.org; Thu, 23 Mar 2023 08:52:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#61627: Cannot start a container built with `guix system container --network'. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 23 Mar 2023 12:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61627 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Arun Isaac Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 61627@debbugs.gnu.org, Pierre Langlois Received: via spool by 61627-submit@debbugs.gnu.org id=B61627.167957586524387 (code B ref 61627); Thu, 23 Mar 2023 12:52:01 +0000 Received: (at 61627) by debbugs.gnu.org; 23 Mar 2023 12:51:05 +0000 Received: from localhost ([127.0.0.1]:37486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfKPI-0006LG-N6 for submit@debbugs.gnu.org; Thu, 23 Mar 2023 08:51:04 -0400 Received: from smtpm5.myservices.hosting ([185.26.105.236]:56878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfKPG-0006Kt-I1 for 61627@debbugs.gnu.org; Thu, 23 Mar 2023 08:51:03 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm5.myservices.hosting (Postfix) with ESMTP id 82D9B20CB7; Thu, 23 Mar 2023 13:50:59 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 2B31980097; Thu, 23 Mar 2023 13:50:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 82s3Rls3KI3q; Thu, 23 Mar 2023 13:50:58 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 8DACE8009D; Thu, 23 Mar 2023 13:50:58 +0100 (CET) Message-ID: <40ddadcf-6e5d-456f-a59f-371e60e7461d@makinata.eu> Date: Thu, 23 Mar 2023 12:50:58 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US References: <87a619u22x.fsf@gmx.com> <873571u0vx.fsf@gmx.com> <87r0ti9sez.fsf@systemreboot.net> From: Bruno Victal In-Reply-To: <87r0ti9sez.fsf@systemreboot.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-Seal: i=1; s=key1; d=yhetil.org; t=1679575930; a=rsa-sha256; cv=none; b=npdSr5KvzCExb5JamrY1JuCjoXCgFA7YKZroFKWo9xANukZxLDntGIYgNGBlWYZICOjEKY 6Yl0HzMpl6p4eApG3+QJQDaBNQJqJk5CyRawkNEG8PvdOORzR/DnknCuhlL9/wP9GatWjv NtO0f7f1dNM2k7y879+K4FpEuhM4NMV2szrDAkFt3kpHZvqUoQlYgthBrsJQe62zEZryUx opCNcG6d6CQpOT+eZISZVWjV6IZxrul2/3r2D5JEVj0dPhPLkiPj3PgACQTiX7tQBSeN5w gtQ/MUDQ5Y3Unj4higuKbBQAwvCfMYNcIRxIHO9G9Kq3fUCmXbs5EUH0NYmrAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679575930; 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-cc: 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; bh=Xu9H2o7TtX+rBHxgdZiyvmmJ3e9mL/iw/+yIYNfnTgM=; b=dfTM97qtTxktwB0vz4++zHrT9vpPaQcz1WHWISdA6IGMAr8nwYpiPHXG8Q6gGwogi38kM/ qVKBMgugwbJUl23g9pM3zpjN8hXjV9qf2pPVvuZGww4qyvRLmUiB3tJ58aFgUhHZrljsA+ 2P3/GoUdlrvYnO23m/hCWHaYVMlIkGwd+wWTudZUubDMb8we1bZ/kb8VcdFkps0XpDcej1 J3wcwvIT9ufAtZbDSUS3UPcVcJ0bZYt6weX3+kTWOeItOIPkRds93K/KICK1bR0DcLMBhE dlQdGW7mcItjHxKAkuzpCZgtpNCDLm/foypp4niqVclPa6AZCwkqAt0XScvntg== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.74 X-Spam-Score: -1.74 X-Migadu-Queue-Id: 0FDA0D5B4 X-TUID: ND5nEnMFB8P9 On 2023-03-21 12:53, Arun Isaac wrote: > > Hi Bruno, > >> /etc/hosts is created by hosts-service-type, so if you remove that service >> it shouldn't be present anymore. > > That makes sense. > > There's one more question, though. Now that we are handling /etc/hosts > using hosts-service-type, should /etc/hosts still be in > %network-configuration-files? I believe this is what Pierre was asking. I'm inclined to keep it in %network-configuration-files just to be safe. Strictly speaking, the file shouldn't be present when you remove hosts-service-type but you could, for $REASONS, have a template that has hosts-service-type removed from the essential-services and /etc/hosts manually provisioned using etc-service-type or special-service-type. Unless it's desirable to honor the /etc/hosts file configured in this manner, in which case you should remove it from %network-configuration-files to respect the users wishes, I'd say the file should be kept in %network-configuration-files to avoid some strange cases that may arise. I should say that I don't use `guix system container` so I'm not too familiar with what behavior is to be expected/“the correct one” here. Cheers, Bruno