deploy-rs icon indicating copy to clipboard operation
deploy-rs copied to clipboard

Activating profile fails with IPv6

Open Stunkymonkey opened this issue 3 years ago â€ĸ 7 comments

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.

Stunkymonkey avatar Jun 27 '22 19:06 Stunkymonkey

Wait, what's uri in the deploy config? Can't find that in the source code. I thought it was hostname.

balsoft avatar Jun 27 '22 20:06 balsoft

you mean this: https://github.com/Stunkymonkey/nixos/blob/master/nixos/deploy.nix

Stunkymonkey avatar Jun 27 '22 20:06 Stunkymonkey

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.

balsoft avatar Jun 27 '22 20:06 balsoft

what else did you expect?

Stunkymonkey avatar Jun 30 '22 18:06 Stunkymonkey

I would expect hostname.

balsoft avatar Jun 30 '22 18:06 balsoft

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.

Stunkymonkey avatar Jul 03 '22 09:07 Stunkymonkey

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.

Stunkymonkey avatar Jul 03 '22 09:07 Stunkymonkey

same stupid mistake as in #184.

Stunkymonkey avatar Dec 04 '22 16:12 Stunkymonkey