!zghijEASpYQWYFzriI:nixos.org

Hydra

378 Members
111 Servers

Load older messages


SenderMessageTime
14 Apr 2023
@linus:schreibt.jetzt@linus:schreibt.jetzt zrsk: does sudo -u hydra-queue-runner ssh rock5b.fleet work? 08:03:22
@linus:schreibt.jetzt@linus:schreibt.jetztnote that the builds are triggered by the hydra-queue-runner user, not hydra08:03:49
@aciceri:nixos.devaciceri
In reply to @linus:schreibt.jetzt
zrsk: does sudo -u hydra-queue-runner ssh rock5b.fleet work?
nope, has to be the hydra-queue-runner to be able to access the remote builder?
08:04:08
@linus:schreibt.jetzt@linus:schreibt.jetztyep08:04:15
@linus:schreibt.jetzt@linus:schreibt.jetzthydra doesn't need it, but hydra-queue-runner does08:04:31
@aciceri:nixos.devaciceri Instead for fetching private repos I need to give ssh access to repos to hydra, right? 08:05:20
@linus:schreibt.jetzt@linus:schreibt.jetztyes08:05:26
@aciceri:nixos.devaciceriI'm trying btw :)08:05:34
@linus:schreibt.jetzt@linus:schreibt.jetztif they're fetched at build time it gets tricky, but if they're flake inputs or jobset inputs it should be fine08:06:04
@aciceri:nixos.devaciceri if they're fetched at build times can't I simply add them to allowed-uris? 08:06:52
@aciceri:nixos.devaciceriand if I need the remote builder during an IFD does it work?08:07:17
@linus:schreibt.jetzt@linus:schreibt.jetztif they're fetched at build time it runs on the build machines, so those need to have keys and the keys somehow need to end up in the build sandbox as well08:07:54
@linus:schreibt.jetzt@linus:schreibt.jetztIFD is bad news, I'd suggest doing your best to avoid it08:08:36
@linus:schreibt.jetzt@linus:schreibt.jetztI think it will work if you have it in nix.buildMachines and the evaluator uses the daemon to access the store, but YMMV hard on IFD08:09:36
@aciceri:nixos.devaciceriI know they are problematic even without Hydra08:11:43
@linus:schreibt.jetzt@linus:schreibt.jetzteven more so with hydra :)08:11:52
@aciceri:nixos.devacicerihowever it doesn't work :(08:12:02
@aciceri:nixos.devaciceri are you sure that I had to be able to run sudo -u hydra-queue-runner ssh rock5b.fleet? 08:12:18
@aciceri:nixos.devaciceri I mean, I don't even have the hydra-queue-runner on the rock5g 08:12:35
@aciceri:nixos.devaciceri * I mean, I don't even have the hydra-queue-runner on the rock5b 08:12:44
@aciceri:nixos.devaciceri wasn't root@rock5b.fleet? 08:12:50
@linus:schreibt.jetzt@linus:schreibt.jetztthen you need to adjust the machine definition accordingly08:12:53
@aciceri:nixos.devaciceri how have to change it? However sudo -u hydra-queue-runner ssh rock5b.fleet doesn't work since I don't have that user on the remote builder 08:13:51
@aciceri:nixos.devaciceri but it works with root@rock5b.fleet now 08:13:58
@linus:schreibt.jetzt@linus:schreibt.jetzt

I don't know off the top of my head. I have a layer of indirection:

    buildMachinesFiles = [(pkgs.writeText "hydra-builders" ''
      localhost aarch64-linux,armv7l-linux - 16 16
      localhost-big-parallel aarch64-linux,armv7l-linux - 1 1 big-parallel,kvm,nixos-test
      oak-hydra x86_64-linux,i686-linux - 16 16
      oak-big-parallel x86_64-linux,i686-linux - 1 1 big-parallel,kvm,nixos-test
    '')];

and

  programs.ssh.extraConfig = ''
    Host localhost-big-parallel
      Hostname localhost
    Host oak-hydra oak-big-parallel
      Hostname oak.sphalerite.tech
      User hydra
  '';
08:14:41
@linus:schreibt.jetzt@linus:schreibt.jetzt ah, there's a nix.buildMachines.*.sshUser option 08:15:22
@linus:schreibt.jetzt@linus:schreibt.jetztso probably set that to root :)08:15:27
@janne.hess:helsinki-systems.dedas_j we have something long the lines of ssh://nix-builder@helsinki-hydra-builder05.wg aarch64-linux /run/secrets/hydra/builders.key 8 8 kvm,nixos-test,big-parallel,benchmark - - 08:16:09
@aciceri:nixos.devaciceri without setting sshUser what is used? consider that I was already able to remote build using the CLI 08:17:43
@linus:schreibt.jetzt@linus:schreibt.jetztno user is specified and ssh will use the local username08:17:59

Show newer messages


Back to Room ListRoom Version: 6