From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#39366: guix offload sometimes can use ~/.ssh/config, sometimes not Date: Wed, 05 Feb 2020 12:11:09 +0100 Message-ID: <87sgjpp9v6.fsf@gnu.org> References: <87blqkrueq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49572) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izIbD-0000RM-3S for bug-guix@gnu.org; Wed, 05 Feb 2020 06:12:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izIbC-0007jl-3J for bug-guix@gnu.org; Wed, 05 Feb 2020 06:12:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izIbB-0007iH-Uu for bug-guix@gnu.org; Wed, 05 Feb 2020 06:12:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1izIbB-0000W5-P8 for bug-guix@gnu.org; Wed, 05 Feb 2020 06:12:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87blqkrueq.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 31 Jan 2020 01:50:53 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Maxim Cournoyer Cc: 39366@debbugs.gnu.org Hi, Maxim Cournoyer skribis: > "hurd" is a host name defined in my ~/.ssh/config file. > > $ guix offload status > guix offload: getting status of 1 build machines defined in '/etc/guix/ma= chines.scm'... [...] > $ guix offload test > guix offload: testing 1 build machines defined in '/etc/guix/machines.scm= '... > guix offload: Guix is usable on 'hurd' (test returned "/gnu/store/883yjkl= 46dxw9mzykykmbs0yzwyxm17z-test") [...] > $ guix build git --no-substitutes --check > process 31348 acquired build slot '/var/guix/offload/hurd:22/0' > guix offload: error: failed to connect to 'hurd': Failed to resolve hostn= ame hurd (Name or service not known) That is confusing indeed. It comes from the fact that =E2=80=98guix offloa= d=E2=80=99 in the last case is running as root; thus, it sees a different ~/.ssh/config. We could instruct =E2=80=98guix offload=E2=80=99 to always ignore ~/.ssh/co= nfig, but that wouldn=E2=80=99t be great because using it can be useful. Perhaps it should emit a warning when not running as root? Thanks, Ludo=E2=80=99.