Subject: Re: bug#27386: offloading documentation and env

From: Oleg Pykhalov <[email-masked]>
Date: Thu, 06 Jul 2017 16:15:08 +0300

[email-masked] (Ludovic Courtès) writes:

> Hmm could it be that ‘machine-load’ in (guix scripts offload) always
> returns +inf.0, for instance because it fails to run “cat /proc/loadavg”
> on the remote machine?  (If it succeeded we would see the message “load
> on machine XYZ is N”.)
>
>   https://git.savannah.gnu.org/cgit/guix.git/tree/guix/scripts/offload.scm#n393

Can I actually look what is happening somehow?

> What does “ssh [email-masked] -i KEY cat /proc/loadavg” return,
> where USER and KEY are those specified in your machines.scm file?

natsu@clover ~$ 
(list (build-machine
             (name "magnolia.local")
             (system "x86_64-linux")
	     (host-key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMRy+enQECs2CsjrbSIfnNHExcUwzHFa7KUnhwDIeWOV")
             (user "natsu")
	     (private-key
	      (string-append (getenv "HOME")
			     "/.ssh/identity-for-guix"))
             (speed 2.)))
ssh [email-masked] -i $HOME/.ssh/identity-for-guix cat /proc/loadavg
0.05 0.08 0.02 1/247 13756