unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: "Jakob L. Kreuze" <zerodaysfordays@sdf.lonestar.org>
Cc: guix-devel@gnu.org
Subject: Re: "guix deploy" is in git master
Date: Sat, 06 Jul 2019 11:29:47 +0200	[thread overview]
Message-ID: <874l3zse7o.fsf@elephly.net> (raw)
In-Reply-To: <87a7drn0ux.fsf@dustycloud.org>


Christopher Lemmer Webber <cwebber@dustycloud.org> writes:

> Huge congratulations to Jakob in that "guix deploy" has just hit git
> master!

I second this.  Thank you Jakob!

> Now who's going to be the first brave soul to use this for server
> deployment? ;)

Me!  I tried to use it on ci.guix.gnu.org to upgrade a node, but it
failed like this:

--8<---------------cut here---------------start------------->8---
rekado@berlin /root/maintenance/hydra$ guix deploy deploy-berlin-node.scm
Backtrace:
           8 (primitive-load "/home/rekado/.config/guix/current/bin/��")
In guix/ui.scm:
  1655:12  7 (run-guix-command _ . _)
In guix/scripts/deploy.scm:
    78:33  6 (guix-deploy . _)
    69:16  5 (load-source-file "deploy-berlin-node.scm")
In guix/ui.scm:
    149:4  4 (make-user-module _)
In srfi/srfi-1.scm:
    640:9  3 (for-each #<procedure 3f2d260 at guix/ui.scm:149:14 (i��> ��)
In guix/ui.scm:
   150:36  2 (_ (gnu machine ssh))
In ice-9/boot-9.scm:
   2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ��)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("no code for modu��" ��) ��)

ERROR: In procedure scm-error:
no code for module (gnu machine ssh)
--8<---------------cut here---------------end--------------->8---

Looks like (gnu machine ssh) is not installed.  I only see
“~/.config/guix/current/share/guile/site/2.2/gnu/machine.scm”, but not
“gnu/machine/ssh.scm”.

“deploy-berlin-node.scm” is not special.  It just uses a procedure to
generate the system configuration:

--8<---------------cut here---------------start------------->8---
(use-service-modules networking ssh)
(use-package-modules bootloaders)

(use-modules (sysadmin build-machines)
             (sysadmin people))

(define %id 14)

(define %system
  (berlin-build-machine-os %id))

(define (id->ip id)
  (format #f "141.80.167.~d" (+ 131 id)))

(list (machine
       (system %system)
       (environment managed-host-environment-type)
       (configuration (machine-ssh-configuration
                       (host-name (id->ip %id))
                       (identity "./id_rsa")
                       (port 22)))))
--8<---------------cut here---------------end--------------->8---


--
Ricardo

  parent reply	other threads:[~2019-07-06  9:30 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-06  6:17 "guix deploy" is in git master Christopher Lemmer Webber
2019-07-05 23:33 ` Jakob L. Kreuze
2019-07-05 23:34 ` Jakob L. Kreuze
2019-07-06  9:29 ` Ricardo Wurmus [this message]
2019-07-06 11:51   ` Jakob L. Kreuze
2019-07-06  9:23     ` Christopher Lemmer Webber
2019-07-06 17:22       ` Ricardo Wurmus
2019-07-06 17:17         ` Christopher Lemmer Webber
2019-07-07  0:12         ` Mark H Weaver
2019-07-07  7:55           ` Ricardo Wurmus
2019-07-07  6:55             ` Christopher Lemmer Webber
2019-07-08 17:15           ` Jakob L. Kreuze
2019-07-07  8:05   ` Ricardo Wurmus
2019-07-07 14:45     ` Ludovic Courtès
2019-07-08 17:37       ` Jakob L. Kreuze
2019-07-08 19:27         ` Ricardo Wurmus
2019-07-08 20:11           ` Jakob L. Kreuze
2019-07-08 20:16             ` Jakob L. Kreuze
2019-07-08 20:23               ` Ricardo Wurmus
2019-07-10 13:51           ` Thompson, David
2019-07-10 17:39             ` Jakob L. Kreuze
2019-07-11  4:27               ` Christopher Lemmer Webber
2019-07-11 15:43                 ` Ludovic Courtès
2019-07-11 16:58                   ` Jakob L. Kreuze

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=874l3zse7o.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=guix-devel@gnu.org \
    --cc=zerodaysfordays@sdf.lonestar.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).