From mboxrd@z Thu Jan 1 00:00:00 1970 From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) Subject: Re: =?utf-8?Q?=E2=80=9CTowards?= Guix for =?utf-8?Q?DevOps?= =?utf-8?Q?=E2=80=9D?= Date: Sat, 27 Jul 2019 11:00:19 -0400 Message-ID: <87sgqr1q0s.fsf@sdf.lonestar.org> References: <871ryvgow6.fsf@gnu.org> <874l37eou5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:52466) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrOEI-0006PI-Vq for guix-devel@gnu.org; Sat, 27 Jul 2019 11:03:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrOEH-000701-Om for guix-devel@gnu.org; Sat, 27 Jul 2019 11:03:26 -0400 In-Reply-To: <874l37eou5.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 27 Jul 2019 12:47:30 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Jan Nieuwenhuizen Cc: guix-devel@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Jan, Jan Nieuwenhuizen writes: > Yes, this is excellent. I started playing with it using a deploy-vm.sh > script (see attached). It took me a few iterations to get all bits > right; I mistook the host's signing-key's error message for an ssh > authentication problem, e.g. > > This works great so I am already using it now; together with channels it > simplifies my deployments a lot. Glad to hear you were able to get it working! And thanks for sharing those scripts. I spin up GuixSD virtual machines very frequently to work on this, and these look like they'd make that workflow much easier. > I found that I cannot deploy to older machines, running 0.16 or earlier. > Not really a problem but it should at least be documented, I think. > > Here's what deploying to a 0.16 machine gives me > > + guix deploy deploy-vm.scm > substitute: updating substitutes from 'http://guix1.oban.verum.com:8181'.= .. 100.0% > substitute: updating substitutes from 'http://guix3.oban.verum.com:8181'.= .. 100.0% > substitute: updating substitutes from 'http://janneke.lilypond.org:8080'.= .. 100.0% > sending 142 store items (745 MiB) to 'localhost'... > sending 3 store items (0 MiB) to 'localhost'... > Backtrace: > 7 (primitive-load "/gnu/store/rl2fvwwdj9n82yjhc8v1yygy5c0zwnkb= -profile/bin/guix") > In guix/ui.scm: > 1659:12 6 (run-guix-command _ . _) > In guix/store.scm: > 623:10 5 (call-with-store _) > In srfi/srfi-1.scm: > 640:9 4 (for-each # (#< system: #=E2=80=A6>)) > In guix/store.scm: > 1803:24 3 (run-with-store # _ #:guile= -for-build _ #:system _ #:target _) > In gnu/machine/ssh.scm: > 339:2 2 (_ _) > In guix/remote.scm: > 122:20 1 (_ _) > 66:17 0 (%remote-eval _ _) > > guix/remote.scm:66:17: In procedure %remote-eval: > Throw to key `srfi-34' with args `(# name: \"root\" password: \"= \" uid: 0 group: \"root\" supplementary-groups: () comment: \"System admini= strator\" home-directory: # create-home-direc= tory?: #t shell: \"/gnu/store/qn1ax1fkj16x280m1rv7mcimfmn9l2pf-bash-4.4.23/= bin/bash\" system?: #f>")] 716f00>>)'. > + ssh -i id_rsa -p 10022 root@localhost guix system list-generations > > After manually reconfiguring the machine to 1.0 it works, but that > already starts to feel clumsy :) I believe this is the same issue that Ricardo ran into when deploying to ci.guix.gnu.org. Sorry about that. Better error handling is something I'm working on at the moment. Though, I'm not quite sure what to do about this issue in particular, as (if I understand correctly) we concluded that this was a problem with the 'user-homes' service, and the idea of rolling out a workaround specific to that in 'guix deploy' doesn't sit particularly well with me. > Anyway, very impressive and a big thank you Jakob! Thank you! Regards, Jakob --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEa1VJLOiXAjQ2BGSm9Qb9Fp2P2VoFAl08ZwMACgkQ9Qb9Fp2P 2VrQfg//UuVtc2suOobHPZ8KhKO1M7cm5eNAIfdIJNhOLgygItJrCDBVxj+6e7Bi MWI08DCRJtFNhMT3GBN//nLGIiz8oYmPJdgeU0BbxZ2VjF0y+F+4PuPDjZTBCZqM cMZx+x0b+gbAE1eyx9XespF0EhSnU49vBfggoY2268hJMr7nQD32H7xShN18el9p oytMamR0owpVkPt8oCl/K7EaTv7HOvOkVfBW+y+9A3B1/GOoY0iaCLFYDjMWNF8m Nt3RZcDsyAMagvXrnki4V7aUwgr12EpqGITIDPQ8Iuq1LUa1hFkNKUA1JtpIgsnm OR2UYjVGmp2p/usLYY+9B9cyZm2J3YGVuyGqHB90ryWnfM5GkMdA0iBtLgrAaQ7W x+n+oN4UHgWQTrXXZfn8JL7NJ2HkeyxqKloxTz+IMmPxBIYUzjEGzgH5fbAqLT6X 7YWYNK+Dcr4J8ze8POmAWDqvgAct1D0s4DH0Iljf3XZGwmvLbrvdF4OCg7w9OXux NCxbK1bfi1qA6ZAncKKiP5hbRYS8XRk9AavB2m3pFpdH7WhKPgSE38+XfiZsUBPp PhYni6LIqcmFz2t27Fx0XfZjnXs7PIkxipaYGXDeRfl7eLw0sn+2mPG/RHBbAgHU 88XmaYRiFsCBO3oD685Rk3z0wpd2Jh+j6fTmlcnuW3/i0bbGcvM= =kpuG -----END PGP SIGNATURE----- --=-=-=--