unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze)
To: Jan Nieuwenhuizen <janneke@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: “Towards Guix for DevOps”
Date: Sat, 27 Jul 2019 11:00:19 -0400	[thread overview]
Message-ID: <87sgqr1q0s.fsf@sdf.lonestar.org> (raw)
In-Reply-To: <874l37eou5.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Sat, 27 Jul 2019 12:47:30 +0200")

[-- Attachment #1: Type: text/plain, Size: 3154 bytes --]

Hi Jan,

Jan Nieuwenhuizen <janneke@gnu.org> 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 #<procedure 19c9020 at guix/scripts/deploy.scm:81:16 (machine)> (#<<machine> system: #…>))
> In guix/store.scm:
>   1803:24  3 (run-with-store #<store-connection 256.99 10e3a80> _ #: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 `(#<inferior-object #<condition &action-exception-error [service: user-homes action: start key: match-error args: ("match" "no matching pattern" "#<<user-account> name: \"root\" password: \"\" uid: 0 group: \"root\" supplementary-groups: () comment: \"System administrator\" home-directory: #<procedure home-directory (x)> create-home-directory?: #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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2019-07-27 15:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-12 17:10 “Towards Guix for DevOps” Ludovic Courtès
2019-07-13  5:29 ` Pierre Neidhardt
2019-07-13 17:11   ` Jakob L. Kreuze
2019-07-13 20:58     ` Pierre Neidhardt
2019-07-16 12:55 ` zimoun
2019-07-16 15:46   ` Jakob L. Kreuze
2019-07-24 18:59     ` Ricardo Wurmus
2019-07-24 19:19       ` Jakob L. Kreuze
2019-07-24 17:11   ` Ludovic Courtès
2019-07-24 18:37     ` zimoun
2019-07-24 19:19     ` Jakob L. Kreuze
2019-07-26  9:10 ` Alex Sassmannshausen
2019-07-26 14:17   ` Jakob L. Kreuze
2019-07-27 10:47 ` Jan Nieuwenhuizen
2019-07-27 15:00   ` Jakob L. Kreuze [this message]
2019-07-27 17:23     ` Jan Nieuwenhuizen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sgqr1q0s.fsf@sdf.lonestar.org \
    --to=zerodaysfordays@sdf.lonestar.org \
    --cc=guix-devel@gnu.org \
    --cc=janneke@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).