Branch: refs/heads/master
Home: https://github.com/NixOS/nixops
Commit: 6781c0a6655c199d55a4a39d4dcaf4842147dbd4
https://github.com/NixOS/nixops/commit/6781c0a6655c199d55a4a39d4dcaf4842147dbd4
Author: aszlig <[email protected]>
Date: 2015-10-29 (Thu, 29 Oct 2015)
Changed paths:
M nixops/ssh_util.py
Log Message:
-----------
ssh_util: Add invoke_shell() to bypass SSHMaster.
Or rather a spawn() method within the SSHMaster class to do direct
connections to the host.
The reason for this is that the current implementation of the ssh
subcommand doesn't use all options that can be available for a
particular machine.
One example would be password authentication while having a machine in
the Hetzner rescue system. Currently we do not correctly pass the
askpass helper to SSH and the connection just fails while the system is
in rescue mode.
Signed-off-by: aszlig <[email protected]>
Commit: e856016e2843c6b35b5aef0043908263f7c171c8
https://github.com/NixOS/nixops/commit/e856016e2843c6b35b5aef0043908263f7c171c8
Author: aszlig <[email protected]>
Date: 2015-10-29 (Thu, 29 Oct 2015)
Changed paths:
M scripts/nixops
Log Message:
-----------
scripts/nixops: Switch to using SSH.invoke_shell.
We now should have a ssh subcommand which works the same way as the
ssh-for-each subcommand, except that it doesn't rely on a SSH master
socket to be present.
This not only has the benefits of making the codebase more DRY but also
things like ssh into a machine that's in rescue mode now work properly.
Signed-off-by: aszlig <[email protected]>
Commit: e853dea73b6eda3eff310b1e8d4573324864e9ae
https://github.com/NixOS/nixops/commit/e853dea73b6eda3eff310b1e8d4573324864e9ae
Author: aszlig <[email protected]>
Date: 2015-10-29 (Thu, 29 Oct 2015)
Changed paths:
M tests/hetzner-backend/default.nix
Log Message:
-----------
tests/hetzner: Test if SSH works in rescue system.
This actually tests the implementation done in 6781c0a and e856016.
We want to make sure that even when we have to rely on a askpass helper,
the ssh subcommand still works.
So getting this to work with our current tests it also means that we
need to generalize the setupAndStartRescue function to wrap a function
that's solely for the post-boot commands executed on the rescue system,
which we need to reboot into the rescue system *after* the machine has
had its first deployment.
Signed-off-by: aszlig <[email protected]>
Compare: https://github.com/NixOS/nixops/compare/1b784d87014f...e853dea73b6e_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits