-
Notifications
You must be signed in to change notification settings - Fork 84
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
All mestro commands hang indefinitely when using SSH tunnelling #63
Comments
I can definitely reproduce the problem. It seems to be depending on the target host though, not necessarily on the Maestro/Python versions. Investigating... |
Hmm, I concerned this is going to be hard to fix. Here are my findings. As you mentioned, the problem comes from The When trying the command ran by What's weird is that I don't have this problem with all the SSH servers I'm connecting to. For example, when establishing a tunnel to a Ubuntu VM running |
@mpetazzoni - thanks for taking a look at this and raising it with the bgtunnel folks... In the meantime still keen to play with maestro in our environment so I added in a little option to use existing tunnels in the maestro config yaml (let's face it - they're reasonably easy to script up). Not a sustainable solution though, so I'll pass on making a pull request with the patch :) |
+1 |
If one of you has some time, can you try with a hacked version of |
Commented the
|
Ran into this one as as well, running deis 0.10.0 which uses CoreOS 379.3 and docker 1.1.1 |
As a workaround, I believe you can set the Banner line in /etc/ssh/sshd_config to a file with a bit of text in it |
Unfortunately coreos mounts /usr as read-only, so editing /etc/ssh/sshd_config directly is out of the question. Thankfully, the files in /etc/ssh are mutable, so I can:
However, after doing this, when I run maestro I get an Error:
The first line of anything I put in the Banner file appears as an error when running status. Note that I was able to get this working on another AWS VPC host on the same subnet using Docker port connections directly using the private IP addresses of the coreos host nodes. It would be nice to be able to use ssh tunneling though, as then I could run maestro remotely. |
It wouldn't be a bad idea to allow expect_hello to be set to False on yaml file. |
Any progress? I've added a banner but also get the same problem:
|
Hey guys, just struggled with the same problem. SSHD outputs the banner in stderr which causes validation fail on the bgtunel side. Anyway to workaround this issue you need to setup you server to write something in STDOUT after login. My solution was to add this line:
at the end of .bashrc file of the user I use in maestro.
|
Thanks for the workaround @corvis. Unfortunately there isn't much Maestro can do here to help. jacobsvante/bgtunnel#7 tracks the issue already on bgtunnel's side. |
When I try to use any commands (status/start etc), maestro hangs indefinitely. The hanging occurs in bgtunnel.py in _validate_ssh_process
I can see bgtunnel has opened up an SSH tunnel to the docker host, something like this:
Interestingly, I can also confirm the tunnel is working fine using curl on the command line:
Playing with the maestro code, I added in bgtunnel's
expect_hello
option and set it to false just to confirm that was not a problem (not including that as an option might block some servers from functioning with maestro), but that just results in getting 'host down' almost immediately when doingmaestro status
Anyone got any ideas?
Mestro - 0.2.2
Environments - tried Ubuntu Precise and Mac OS X 10.9.2
Python - tried 2.7.3 and 2.7.5
Docker - 0.11
The text was updated successfully, but these errors were encountered: