From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: "guix deploy" is in git master Date: Sat, 06 Jul 2019 11:29:47 +0200 Message-ID: <874l3zse7o.fsf@elephly.net> References: <87a7drn0ux.fsf@dustycloud.org> 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]:56264) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hjh1B-0005Pm-6e for guix-devel@gnu.org; Sat, 06 Jul 2019 05:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hjh1A-0005yD-2h for guix-devel@gnu.org; Sat, 06 Jul 2019 05:30:05 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21202) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hjh19-0005vN-Ly for guix-devel@gnu.org; Sat, 06 Jul 2019 05:30:04 -0400 In-reply-to: <87a7drn0ux.fsf@dustycloud.org> 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: "Jakob L. Kreuze" Cc: guix-devel@gnu.org Christopher Lemmer Webber 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/=EF=BF= =BD=EF=BF=BD") 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 # =EF=BF=BD=EF=BF=BD) In guix/ui.scm: 150:36 2 (_ (gnu machine ssh)) In ice-9/boot-9.scm: 2803:6 1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ =EF=BF= =BD=EF=BF=BD) In unknown file: 0 (scm-error misc-error #f "~A ~S" ("no code for modu=EF=BF=BD= =EF=BF=BD" =EF=BF=BD=EF=BF=BD) =EF=BF=BD=EF=BF=BD) 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 =E2=80=9C~/.config/guix/current/share/guile/site/2.2/gnu/machine.scm=E2=80= =9D, but not =E2=80=9Cgnu/machine/ssh.scm=E2=80=9D. =E2=80=9Cdeploy-berlin-node.scm=E2=80=9D is not special. It just uses a pr= ocedure 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