<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 22, 2017 at 7:40 PM, Valentina Makarova <span dir="ltr">&lt;<a href="mailto:makarovavs07@gmail.com" target="_blank">makarovavs07@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello!<br><br>I try to use lago.ssh for ssh connection to non-host vm in ovirt-system-tests.<div>And I have login/password (not root) for vm, but have not ssh-key. </div><div>I try to use lago.ssh.get_ssh_client() to get connection but there is next code there:<br><br></div><div><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">if ssh_key:</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">  client.connect(</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      ip_addr,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      username=username,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      password=password,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      key_filename=ssh_key,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      timeout=ssh_timeout,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">      )</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">  else:</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">     client.connect(</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">         ip_addr,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">         username=&#39;root&#39;,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">         timeout=ssh_timeout,</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">     )</span><br style="color:rgb(53,53,53);font-family:sans-serif;white-space:pre-wrap"><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)">     break</span></div><div><span class="gmail-m_5701103201818587686gmail-com-google-gwtexpui-safehtml-client-SafeHtmlCss-wikiPreFormat" style="white-space:pre-wrap;font-family:&quot;Lucida Console&quot;,&quot;Lucida Sans Typewriter&quot;,Monaco,monospace;color:rgb(53,53,53)"><br></span></div>But if I can&#39;t use key file, client should try to connect using login/password. <br>And according this code I have to create empty file for this function and delete it after.<br>(if ssh key != None but in is not existed file, client.connect )<br><div>Example is there:<br><a href="https://github.com/vmakarova/ovirt-system-tests/commit/855dbdf379730d55daf51851052d71daa45d9a09" target="_blank">https://github.com/vmakarova/<wbr>ovirt-system-tests/commit/<wbr>855dbdf379730d55daf51851052d71<wbr>daa45d9a09</a></div><div><br></div><div>Is it a bug? Or is there some reasons for implementing this logic?<br></div></div></blockquote><div><br></div><div>I think it was not implemented correctly.</div><div>Can you give <a href="https://github.com/lago-project/lago/pull/589">https://github.com/lago-project/lago/pull/589</a> a shot and see if it fixes your problem?</div><div>Y.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br style="font-size:12.8px"><span style="font-size:12.8px">Sincerely, Valentina Makarova</span>  </div></div>
<br>______________________________<wbr>_________________<br>
lago-devel mailing list<br>
<a href="mailto:lago-devel@ovirt.org">lago-devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/lago-devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/lago-devel</a><br>
<br></blockquote></div><br></div></div>