-
Notifications
You must be signed in to change notification settings - Fork 186
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
List of ports that should be opened for plumbum/zerodeploy to work. #229
Comments
I believe, from a quick perusal of the code, that it is randomly selecting an open port, using something like |
Thanks for the quick response henry. The weird thing is, I can ping and ssh to the machine from the bash. But when I try to connect using SshMachine(), I get following exception.
Does a single SshMachine() makes multiple connections? Since this happens even before calling any RPyC functions, I don't think its any issue with RPyC (yet) Also, is there any way we can specify a range? So that in case of containers (where every port is not open across bridge), it has some workaround functions? Thanks again. MS |
You can get extended logging using: import logging
logging.basicConfig(level=logging.DEBUG) before you run that command. What does that show? I get the command |
Thanks again Henry, I get the below output. This looks more and more weird to me.
What does EOFError exception indicate? I thought it means the other end did not reply. Maybe it is because of some capabilities (like selinux, cap sets) mismatch in docker containers? Thanks MS |
The |
Thanks again Henry, The remote container is running rhel, so is running bash. But since plumbum can connect to same container running in local system and have trouble connecting only to container running remotely, I think it must be something to do with either ports (which is kind of ruled out with above discussion) or some selinux/capsets which rejects the incoming request in remote machine. The other problem might be the etcd/flannel connection which might be dropping the packets from this node/process. I do not know where else to look for errors. Any other ideas with container? Thanks MS |
Have you tried manually calling ssh from the remote then seeing if |
Thanks. I just tried the same. [root@6aa709be5247 ~]# echo "Hello" 1>&2 [root@6aa709be5247 ~]# echo "Hello" 2>/dev/null 1>&2 The redirection seems to be working just fine. Anything else plumbum might be looking for? Like some encoding capabilities or anything? Still can't figure where the problem might be. Thanks MS |
I'm not sure why it's not working now, then. Figured that was worth a shot, anyway. I would start adding debug outputs (ie, I can't, unfortunately, suggest much more without a broken example to fix. I don't think it does more than pipes through the standard ssh command ( @tomerfiliba might know? ) for the example you have. |
Thanks @henryiii for you help so far. I will try to check the exact difference between connecting to container in same host and different host. @tomerfiliba Any thoughts why it might be behaving the way it is? Thanks... MS |
I was trying to connect to one docker container from another docker container. But when both the containers are in same host, the zerodeploy connection works. But when they are in different host the zerodeploy (plumbum.SshMachine) actually doesn't work. I get EOFError (refer to my last topic in this group)
The cluster is setup using etcd/flannel. And I can ssh from one container to another container in another host.
So I think it might be a problem with ports bot being accessible or plumbum trying to use non-default port.
Can anybody tell, if this an plumbum issue or my setup issue?
Thanks,
MS
The text was updated successfully, but these errors were encountered: