!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

329 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena116 Servers

Load older messages


SenderMessageTime
22 Jun 2023
@palo:xaos.space@palo:xaos.spaceThanks for your input @wa08:23:56
@palo:xaos.space@palo:xaos.space * Thanks for your input @[Wanja Hentze] 08:24:12
23 Jun 2023
@bl1nk:matrix.orgbl1nkRedacted or Malformed Event07:47:54
@bl1nk:matrix.orgbl1nk

Alright, next try to get this formatted correctly...

I recently updated to colmena 0.4.0 and cannot deploy from my Mac anymore:

~/.co/nixpkgs main ▷ nix develop -c colmena apply --on elara
[INFO ] Using flake: git+file:///Users/markuscisler/.config/nixpkgs
[INFO ] Enumerating nodes...
error:
       … while calling the 'attrNames' builtin

         at «string»:1:209:

            1| with builtins; let assets = getFlake "path:/tmp/nix-shell.9futSw/colmena-assets-0CsIT0?lastModified=1687506045&narHash=sha256-6Mfqk77CvYUqLBAWSiOuxaeT%2Bi2EF06vZHsFgILLuFU%3D"; hive = assets.processFlake; in attrNames hive.nodes
             |                                                                                                                                                                                                                 ^

       … while evaluating the attribute 'nodes'

         at /nix/store/vfamvq9dh5qiz0b3f6pbkkf77kqkmpr8-source/eval.nix:186:3:

          185|
          186|   nodes = listToAttrs (map (name: { inherit name; value = evalNode name (configsFor name); }) nodeNames);
             |   ^
          187|   toplevel =         lib.mapAttrs (_: v: v.config.system.build.toplevel) nodes;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'currentSystem' missing

       at /nix/store/b90clwdlidf3s95m73jsby3ikfa56h91-source/pkgs/top-level/impure.nix:17:43:

           16|   # (build, in GNU Autotools parlance) platform.
           17|   localSystem ? { system = args.system or builtins.currentSystem; }
             |                                           ^
           18|
[ERROR] -----
[ERROR] Operation failed with error: Child process exited with error code: 1
Hint: Backtrace available - Use `RUST_BACKTRACE=1` environment variable to display a backtrace

The relevant parts from my flake.nix are:

      colmena = {
        meta = {
          specialArgs = { inherit inputs; };

          nixpkgs = import inputs.nixpkgs-stable { };
          nodeNixpkgs = {
            kerala = import inputs.nixpkgs-2305 { };
          };
        };
        defaults = import ./nixos/remote-defaults;

        elara = { name, nodes, ... }: {
          deployment = {
            buildOnTarget = true;
            #targetHost = "192.168.10.2";
            targetHost = "100.66.68.66";
          };
          nixpkgs.system = "x86_64-linux";
          imports = [ ./machines/elara.nix ];
        };
      };

Any hints on what is going on here?

07:51:59
@zhaofeng:zhaofeng.liZhaofeng Li Change nixpkgs = import inputs.nixpkgs-stable { }; to nixpkgs = import inputs.nixpkgs-stable { system = "x86_64-linux"; }; and similarly for nodeNixpkgs.kerala below 07:55:26
@zhaofeng:zhaofeng.liZhaofeng Li The reason is that with Colmena 0.4.0, flake evaluation is now actually pure so things like builtins.currentSystem aren't available anymore 07:56:06
@bl1nk:matrix.orgbl1nk Can I still override the system for aarch64 machines using nixpkgs.system in the node block? 07:56:35
@zhaofeng:zhaofeng.liZhaofeng LiYes, that'll still work07:56:51
@bl1nk:matrix.orgbl1nkThanks!07:59:50
@bl1nk:matrix.orgbl1nk(For the record: that solved my problem)08:03:47
@bl1nk:matrix.orgbl1nk changed their profile picture.21:49:19
26 Jun 2023
@janik0:matrix.orgJanik (they/them) changed their profile picture.21:38:10
27 Jun 2023
@ixxie:matrix.orgMatan (ixxie) joined the room.11:55:44
@ixxie:matrix.orgMatan (ixxie)

Hello folks; I just heard about Colmena today over at #nixops:nixos.org. I'm currently trying to evaluate whether its the right fit for my usecase (deploying a small number of VPS servers with the hopes of eventually scaling up).

What was the motivation of Colmena? I see its stateless, like Morph, which is a big plus for me. But what advantages does it have over Morph and NixOps?

11:57:59
@ixxie:matrix.orgMatan (ixxie) *

Hello folks!

I just heard about Colmena today over at #nixops:nixos.org. I'm currently trying to evaluate whether its the right fit for my usecase (deploying a small number of VPS servers with the hopes of eventually scaling up).

What was the motivation of Colmena? I see its stateless, like Morph, which is a big plus for me. But what advantages does it have over Morph and NixOps?

11:58:07
@linus:schreibt.jetztLinux Hackermanfancy clock animations!11:58:57
@linus:schreibt.jetztLinux HackermanAlso parallel deployment, I think morph does things sequentially11:59:09
@whentze:matrix.orgWanja Hentzefor us, streaming evaluation12:07:13
@whentze:matrix.orgWanja Hentzemorph (and iirc deplo-rs too) has no such feature so evaluation is entirely single-threaded12:07:38
@whentze:matrix.orgWanja Hentzeevaluating the entire deployment takes many minutes then12:07:48
@ixxie:matrix.orgMatan (ixxie) Thanks Linux Hackerman and Wanja Hentze 12:30:09
@ixxie:matrix.orgMatan (ixxie)It seems flake support is better also, or at least better documented12:30:22
@whentze:matrix.orgWanja HentzeI wouldn't know 😎12:57:29
@hanleym:matrix.org@hanleym:matrix.org joined the room.15:58:06
28 Jun 2023
@dfh:beeper.comdfh joined the room.11:10:56
@guiguid:matrix.orgguiguid joined the room.11:32:33
29 Jun 2023
@obsidianical:matrix.org@obsidianical:matrix.org changed their display name from Schrottkatze (moving to @schrottkatze:katzen.cafe) to Not using this account anymore, moved to @schrottkatze:katzen.cafe.08:26:40
30 Jun 2023
@sumner:nevarro.space@sumner:nevarro.space

I have a strange issue where occasionally my Hetzner server loses networking. It seems like dhcpcd just starts failing, and it can't recover. I can shell into the machine via the online console, and it's up and running, but it can't connect to or accept connections from the outside world. Has anyone had any similar experience?

I'm deploying using Colmena, I have dhcpcd.enable = true and usePredictableInterfaceNames = false. I set interfaces.eth0.useDHCP = true as well. (config here)

13:55:26
@hexa:lossy.networkhexacloud? https://nixos.wiki/wiki/Install_NixOS_on_Hetzner_Cloud#Network_configuration13:59:42
@sumner:nevarro.space@sumner:nevarro.spaceyes, cloud. I tried doing the static config, but the issue with that is that it made my private network between Hetzner nodes stop working.14:00:54

Show newer messages


Back to Room ListRoom Version: 6