deploy-rs
deploy-rs copied to clipboard
Activating profile fails with IPv6
deploy .#newton using IPv6:
đ âšī¸ [deploy] [INFO] The following profiles are going to be deployed:
[newton.system]
user = "root"
path = "/nix/store/jpl52r9pr5gg2dl46xvb01k4jafkzqy8-activatable-nixos-system-newton-22.05.20220626.cd90e77"
uri = "ssh://root@[2a02:c206:3009:3317::1]:22"
ssh_opts = ["-i", "~/.ssh/keys/local_ed25519"]
đ âšī¸ [deploy] [INFO] Building profile `system` for node `newton`
đ âšī¸ [deploy] [INFO] Copying profile `system` to node `newton`
đ âšī¸ [deploy] [INFO] Activating profile `system` for node `newton`
đ âšī¸ [deploy] [INFO] Creating activation waiter
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J [user@]host[:port]] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] destination [command [argument ...]]
deploy .#newton using IPv4:
đ âšī¸ [deploy] [INFO] The following profiles are going to be deployed:
[newton.system]
user = "root"
path = "/nix/store/jpl52r9pr5gg2dl46xvb01k4jafkzqy8-activatable-nixos-system-newton-22.05.20220626.cd90e77"
uri = "ssh://[email protected]:22"
ssh_opts = ["-i", "~/.ssh/keys/local_ed25519"]
đ âšī¸ [deploy] [INFO] Building profile `system` for node `newton`
đ âšī¸ [deploy] [INFO] Copying profile `system` to node `newton`
đ âšī¸ [deploy] [INFO] Activating profile `system` for node `newton`
đ âšī¸ [deploy] [INFO] Creating activation waiter
â âšī¸ [activate] [INFO] Activating profile
updating GRUB 2 menu...
activating the configuration...
setting up /etc...
reloading user units for root...
reloading user units for felix...
setting up tmpfiles
â âšī¸ [activate] [INFO] Activation succeeded!
â âšī¸ [activate] [INFO] Magic rollback is enabled, setting up confirmation hook...
â âšī¸ [activate] [INFO] Waiting for confirmation event...
đ âšī¸ [deploy] [INFO] Success activating, attempting to confirm activation
đ âšī¸ [deploy] [INFO] Deployment confirmed.
Wait, what's uri in the deploy config? Can't find that in the source code. I thought it was hostname.
you mean this: https://github.com/Stunkymonkey/nixos/blob/master/nixos/deploy.nix
No, I mean the fact that deploy-rs seems to show uri as part of the deploy config:
[newton.system]
user = "root"
path = "/nix/store/jpl52r9pr5gg2dl46xvb01k4jafkzqy8-activatable-nixos-system-newton-22.05.20220626.cd90e77"
uri = "ssh://root@[2a02:c206:3009:3317::1]:22"
ssh_opts = ["-i", "~/.ssh/keys/local_ed25519"]
I don't have ipv6 connectivity myself, so can't reproduce the bug. Just thought this was interesting.
what else did you expect?
I would expect hostname.
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
this line clearly indicates, that you could use my server to debug the problem. Because there is something wrong in the cli-parameters. I could then test the solution.
If I use the hard coded ipv4-adress, but use the hostname without the :22: https://github.com/Stunkymonkey/nixos/blob/master/nixos/deploy.nix#L7=. It does not work either. Any Idea what the problem is? If I specify the port it in the sshOps but this does not help either.
same stupid mistake as in #184.