From cc3e7f7471ede41820fbcefbf714138c17b45627 2011-06-28 23:47:08 From: MinRK Date: 2011-06-28 23:47:08 Subject: [PATCH] better warning on non-local controller without ssh also don't automatically try SSH. The connector file could be being reused and on loopback on a laptop whose public IP changes depending on the network. --- diff --git a/IPython/parallel/client/client.py b/IPython/parallel/client/client.py index acb25a3..647788d 100644 --- a/IPython/parallel/client/client.py +++ b/IPython/parallel/client/client.py @@ -326,11 +326,11 @@ class Client(HasTraits): if location is not None: proto,addr,port = util.split_url(url) if addr == '127.0.0.1' and location not in LOCAL_IPS and not sshserver: - sshserver = location - warnings.warn( - "Controller appears to be listening on localhost, but is not local. " - "IPython will try to use SSH tunnels to %s"%location, - RuntimeWarning) + warnings.warn(""" + Controller appears to be listening on localhost, but not on this machine. + If this is true, you should specify Client(...,sshserver='you@%s') + or instruct your controller to listen on an external IP."""%location, + RuntimeWarning) self._config = cfg