<br><br><div class="gmail_quote">On Fri, Apr 16, 2010 at 10:01 AM, Justin Riley <span dir="ltr">&lt;<a href="mailto:jtriley@mit.edu">jtriley@mit.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi Dan,<br>
<br>
Try using the internal dns names instead of the public dns names and see<br>
if that helps:<br>
<br>
ie solr_conn.execute(&#39;ssh -f -N -L 27017:localhost:27017<br>
gotdata@dom-blah-blah.internal&#39;)<br>
<br></blockquote><div><br>Yes -- I think this works.<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
~Justin<br>
<br>
On 04/16/2010 08:04 AM, Dan Yamins<br>
wrote:<br>
<div class="im">&gt; Here are two places where behavior of executing a command via<br>
&gt; connection.execute is different from executing it at the actual shell,<br>
&gt; causing trouble:<br>
&gt;<br>
&gt;<br>
&gt; 1) I can run this command fine at the actual shell of one of my node,<br>
&gt; when logged in as root:<br>
&gt;<br>
&gt;    su gotdata -c &quot;ssh -f -N -L 27017:localhost:27017<br>
&gt; <a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a><br>
</div>&gt; &lt;mailto:<a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a>&gt;&quot;<br>
<div class="im">&gt;<br>
&gt; It runs, returns without  blocking, doing exactly what I want<br>
&gt; (establishing an ssh tunnel from one node to another on port 27017).<br>
&gt;<br>
&gt; But when I try to execute this command over the execute method in the<br>
&gt; starcluster shell, it DOES block:<br>
&gt;<br>
&gt;    solr_conn.execute(&#39;su gotdata -c &quot;ssh -f -N -L 27017:localhost:27017<br>
&gt; <a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a><br>
</div>&gt; &lt;mailto:<a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a>&gt;&quot;&#39;)<br>
<div class="im">&gt;<br>
&gt; ... and only returns when I manually kill the ssh tunnel that it<br>
&gt; starts.    What should I do to get what I want?<br>
&gt;<br>
&gt;<br>
&gt; 2) The same command, minus the su part, runs fine at the actual shell:<br>
&gt;<br>
&gt;    ssh -f -N -L 27017:localhost:27017<br>
&gt; <a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a><br>
</div>&gt; &lt;mailto:<a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a>&gt;<br>
<div class="im">&gt;<br>
&gt; but when I run this command via the execute method, it fails:<br>
&gt;<br>
&gt;    In [31]: solr_conn.execute(&#39;ssh -f -N -L 27017:localhost:27017<br>
&gt; <a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a><br>
</div>&gt; &lt;mailto:<a href="mailto:gotdata@ec2-184-73-101-141.compute-1.amazonaws.com">gotdata@ec2-184-73-101-141.compute-1.amazonaws.com</a>&gt;&#39;)<br>
<div class="im">&gt;    Out[31]: [&#39;Host key verification failed.&#39;]<br>
&gt;<br>
&gt; Why is the behavior different?<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Dan<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; Starcluster mailing list<br>
&gt; <a href="mailto:Starcluster@mit.edu">Starcluster@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/starcluster" target="_blank">http://mailman.mit.edu/mailman/listinfo/starcluster</a><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.14 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
<br>
iEYEARECAAYFAkvIbbYACgkQ4llAkMfDcrmiSgCcDtw7x2vmAYN11HliB14+tO12<br>
+ZsAn02m9fgMwiCMeDQnUU16cuadpsf3<br>
=mRud<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br>