Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy-rs stalls if ssh uses ControlMaster option... #233

Closed
boxofrox opened this issue Sep 17, 2023 · 1 comment
Closed

deploy-rs stalls if ssh uses ControlMaster option... #233

boxofrox opened this issue Sep 17, 2023 · 1 comment

Comments

@boxofrox
Copy link

Steps to reproduce:

  1. Use ~/.ssh/config to enable ControlMaster yes for deploy recipient host (e.g. prod-1).
  2. Connect to recipient host to establish control master. E.g. ssh root@prod-1.
  3. Initiate deployment from administration host. E.g. deploy -s .#prod-1

Actual outcome:

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`

Expected outcome:

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: [email protected]
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: [email protected]
⭐ ℹ️ [activate] [INFO] Activation succeeded!
🚀 ℹ️ [deploy] [INFO] Success activating, done!

Work around

  1. Use ssh root@prod-1 -O exit to kill existing ControlMaster.
  2. Use deploy -s .#prod-1 to establish new ControlMaster, deploy, activate, and terminate.
@rvem
Copy link
Member

rvem commented Sep 18, 2023

Seems like #226 which is caused by the nix issue

@boxofrox boxofrox closed this as completed Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants