!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
12 Aug 2023
@whentze:matrix.orgWanja HentzeIf you're going to pretend things never go wrong, might as well not have rollback either22:35:44
@whentze:matrix.orgWanja Hentze
In reply to @raitobezarius:matrix.org
Magic rollback should be part of NixOS to a certain extent
the rollback part yes (and it is), but the "can I still use my deployment tool on this machine" part depends on the deployment tool
22:38:20
@raitobezarius:matrix.orgraitobezarius
In reply to @whentze:matrix.org
If you're going to pretend things never go wrong, might as well not have rollback either
that's the goal
22:38:43
@raitobezarius:matrix.orgraitobezariustrying to rollback is already defeat22:38:51
@whentze:matrix.orgWanja Hentzewe have that today22:38:57
@raitobezarius:matrix.orgraitobezarius
In reply to @whentze:matrix.org
the rollback part yes (and it is), but the "can I still use my deployment tool on this machine" part depends on the deployment tool
right
22:39:02
@raitobezarius:matrix.orgraitobezarius
In reply to @whentze:matrix.org
we have that today
checkmate myself
22:39:38
@whentze:matrix.orgWanja Hentzethe ostrich algorithm is already full implemented 😎22:41:38
@whentze:matrix.orgWanja Hentze* the ostrich algorithm is already fully implemented 😎22:42:26
13 Aug 2023
@10leej:matrix.org@10leej:matrix.org joined the room.01:25:57
@ofungus:matrix.orgofungus joined the room.19:25:50
@void68:matrix.orgvoidi just need something like touch /tmp/doing_switching; nixos-rebuild switch; while [ -f /tmp/doing_switch ]; sleep 5; done; if [ ! -f /tmp/done_switching ]; then nixos-rebuild switch --rollback; 23:06:18
@void68:matrix.orgvoid *

i just need something like

touch /tmp/doing\_switching; 
nixos-rebuild switch; 
sleep 5; 
if \[ ! -f /tmp/done\_switching \]; then nixos-rebuild switch --rollback; 
23:06:57
@void68:matrix.orgvoid *

i just need something like


nixos-rebuild switch; 
sleep 5; 
if [ ! -f /tmp/done\_switching ]; then nixos-rebuild switch --rollback; 
23:07:18
@void68:matrix.orgvoid *

i just need something like


nixos-rebuild switch; 
sleep 5; 
if [ ! -f /tmp/done\_switching ]; then nixos-rebuild switch --rollback;  fi;
23:07:27
@void68:matrix.orgvoidcolmena will ssh touch /tmp/done_switching; 23:17:20
@void68:matrix.orgvoid * colmena will ssh touch /tmp/done_switching; for instance in the test section. 23:18:26
@void68:matrix.orgvoidthis will save me from pretty much all the mistakes I make (too hot here 33 deg cel during the day, can't concentrate sometimes)23:19:25
@whentze:matrix.orgWanja Hentzeyep, it's quite low-tech23:53:04
@whentze:matrix.orgWanja Hentzecan be built out of an activation script and a "post-apply" script on colmena's end23:53:30
15 Aug 2023
@cafkafk:nixos.devChristina Sørensen changed their profile picture.14:57:57
@10leej:matrix.org@10leej:matrix.org left the room.19:34:24
16 Aug 2023
@jeff:ocjtech.usJeff
In reply to @winterqt:nixos.dev
issue is i can reproduce it consistently, and it only happens when using it via Colmena :/
I've been seeing the same thing with Colmena recently, trying to re-use the master socket just hangs. The only thing that fixes it is if the master socket gets closed, either explicity, though a timeout, or if the remote system reboots.
00:19:49
@jeff:ocjtech.usJeffOnly happens with Colmena, never have a problem with the ssh client.00:22:21
@jeff:ocjtech.usJeffI wonder if the recent update of openssh to 9.3p2 or 9.4p1 is part of the problem.01:35:20
@zhaofeng:zhaofeng.liZhaofeng LiQuickly looked, and it appears that the underlying problem may be https://github.com/NixOS/nix/issues/832905:14:50
@zhaofeng:zhaofeng.liZhaofeng LiI'll try to reproduce with nix-copy-closure on an older Nix version tomorrow. Should have looked earlier when I first encountered the problem myself 😐05:16:33
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name left the room.09:44:29
@lab-cat:ag-link.xyz@lab-cat:ag-link.xyz joined the room.10:02:58
@jeff:ocjtech.usJeff
In reply to @zhaofeng:zhaofeng.li
Quickly looked, and it appears that the underlying problem may be https://github.com/NixOS/nix/issues/8329
Looks like this is fixed in Nix 2.16 but that will take some time to roll out. A workaround would be a way to disable ControlMaster for Colmena/Nix connections but I don't know how you'd accomplish that.
14:47:49

Show newer messages


Back to Room ListRoom Version: 6