Closed boxofrox closed 12 months ago
ControlMaster yes
prod-1
ssh root@prod-1
deploy -s .#prod-1
Progress hangs at Copying profile.
$ deploy -s .#prod-1 🚀 ℹ️ [deploy] [INFO] Evaluating flake in . 🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed: [prod-1.system] user = "root" ssh_user = "root" path = "/nix/store/0lf4flfq6lza9a99hq04qhwchz76b14f-activatable-nixos-system-prod-1-23.05.20230724.a58eb89" hostname = "prod-1" ssh_opts = [] 🚀 ℹ️ [deploy] [INFO] Building profile `system` for node `prod-1` 🚀 ℹ️ [deploy] [INFO] Copying profile `system` to node `prod-1`
Finish deploy, then activate, then terminate program.
$ deploy -s .#prod-1 🚀 ℹ️ [deploy] [INFO] Evaluating flake in . 🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed: [prod-1.system] user = "root" ssh_user = "root" path = "/nix/store/0lf4flfq6lza9a99hq04qhwchz76b14f-activatable-nixos-system-prod-1-23.05.20230724.a58eb89" hostname = "prod-1" ssh_opts = [] 🚀 ℹ️ [deploy] [INFO] Building profile `system` for node `prod-1` 🚀 ℹ️ [deploy] [INFO] Copying profile `system` to node `prod-1` 🚀 ℹ️ [deploy] [INFO] Activating profile `system` for node `prod-1` ⭐ ℹ️ [activate] [INFO] Activating profile stopping the following units: container@rev-proxy.service activating the configuration... setting up /etc... sops-install-secrets: Imported /etc/ssh/ssh_host_rsa_key as GPG key with fingerprint **** sops-install-secrets: Imported /etc/ssh/ssh_host_ed25519_key as age key with fingerprint **** reloading user units for root... setting up tmpfiles starting the following units: container@rev-proxy.service ⭐ ℹ️ [activate] [INFO] Activation succeeded! 🚀 ℹ️ [deploy] [INFO] Success activating, done!
ssh root@prod-1 -O exit
Seems like https://github.com/serokell/deploy-rs/issues/226 which is caused by the nix issue
Steps to reproduce:
ControlMaster yes
for deploy recipient host (e.g.prod-1
).ssh root@prod-1
.deploy -s .#prod-1
Actual outcome:
Progress hangs at Copying profile.
Expected outcome:
Finish deploy, then activate, then terminate program.
Work around
ssh root@prod-1 -O exit
to kill existing ControlMaster.deploy -s .#prod-1
to establish new ControlMaster, deploy, activate, and terminate.