<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 29, 2017 at 3:05 PM, Abdurrahman A. Ibrahim <span dir="ltr"><<a href="mailto:a.rahman.attia@gmail.com" target="_blank">a.rahman.attia@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all, <div><br></div><div>- Here is a simple architecture for my demo deployment using KVM VMs:</div><div>1) rhevm1.ab.lab -> oVirt Engine (CentOS 7.4 x86_64)</div><div>2) rhevh1.ab.lab -> oVirt Enterprise Linux Host (CentOS 7.4 x86_64)</div><div>3) rhevh2.ab.lab -> oVirt Enterprise Linux Host (CentOS 7.4 x86_64)</div><div><br></div><div>- How to reproduce issue:</div><div>1) I installed 'ovirt-engine' successfully. </div><div><br></div><div>2) I tried to add 'rhevh1.ab.lab' from 'rhevm1.ab.lab' using SSH public key.</div></div></blockquote><div><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Hi,</div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default"><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">could you please try to connect using root password instead of SSH public key? If root password option works, could you please create a bug for this issue?</div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default"><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Thanks</div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default"><br></div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default">Martin</div><div style="font-family:arial,helvetica,sans-serif" class="gmail_default"></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> </div><div> Everything was OK until I had the following error message:</div><div> "Host rhevh1 installation failed. Failed to execute Ansible host-deploy role. Please check logs for more details: /var/log/ovirt-engine/host-<wbr>deploy/ovirt-host-deploy-<wbr>ansible-20171229144439-rhevh1.<wbr>ab.lab-13b2b5c4.log."</div><div><br></div><div> Checking log file showed the following:</div><div> [root@rhevm1 tmp]# cat /var/log/ovirt-engine/host-<wbr>deploy/ovirt-host-deploy-<wbr>ansible-20171229144439-rhevh1.<wbr>ab.lab-13b2b5c4.log</div><div> 2017-12-29 14:44:40,320 p=9666 u=ovirt | [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use</div><div><div> ' import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.</div><div> This feature will be removed in a future release. Deprecation warnings can be</div><div> disabled by setting deprecation_warnings=False in ansible.cfg.</div><div> 2017-12-29 14:44:40,321 p=9666 u=ovirt | [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is</div><div> discouraged. The module documentation details page may explain more about this</div><div> rationale.. This feature will be removed in a future release. Deprecation </div><div> warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.</div><div> 2017-12-29 14:44:40,458 p=9666 u=ovirt | PLAY [all] ******************************<wbr>******************************<wbr>*********</div><div> 2017-12-29 14:44:40,469 p=9666 u=ovirt | TASK [Gathering Facts] ******************************<wbr>***************************</div><div> 2017-12-29 14:44:40,801 p=9666 u=ovirt | fatal: [rhevh1.ab.lab]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh_exchange_identification: Connection closed by remote host\r\n", "unreachable": true} </div><div> 2017-12-29 14:44:40,802 p=9666 u=ovirt | PLAY RECAP ******************************<wbr>******************************<wbr>*********</div><div> 2017-12-29 14:44:40,802 p=9666 u=ovirt | rhevh1.ab.lab : ok=0 changed=0 unreachable=1 failed=0</div><div><br></div><div>3) I tried to simulate Ansilbe role work by using simple ansible module using 'root' user:</div><div> [root@rhevm1 tmp]# ansible -m ping rhevhs -i /tmp/tmphosts </div><div> The authenticity of host '192.168.150.21 (<no hostip for proxy command>)' can't be established. </div><div> ECDSA key fingerprint is SHA256:fPem/Gn67v6tEbQpX/NJix/<wbr>Ff7gPJsQ9Hz9SSBBc5ts.</div><div> ECDSA key fingerprint is MD5:12:ca:c7:84:93:50:3f:33:<wbr>b5:39:e2:20:2d:13:17:43. </div><div> Are you sure you want to continue connecting (yes/no)? yes</div><div> 192.168.150.21 | SUCCESS => {</div><div> "changed": false, </div><div> "ping": "pong"</div><div> }</div><div><br></div><div><br></div><div>4) It seems that above ansible role is not able to deal with SSH fingerprint for the first time even if I was able to collect 'rhevh1.ab.lab' fingerprint during adding host procedures.</div><div><br></div><div>5) I have tried to disable this feature in ansible.cfg file:</div><div><div>[root@rhevm1 tmp]# grep host_key_checking /etc/ansible/ansible.cfg </div><div>host_key_checking = False</div></div><div><br></div><div>6) Again the same results:</div><div><div>[root@rhevm1 tmp]# cat /var/log/ovirt-engine/host-<wbr>deploy/ovirt-host-deploy-<wbr>ansible-20171229145907-rhevh1.<wbr>ab.lab-3e8bace0.log</div><div>2017-12-29 14:59:08,005 p=10135 u=ovirt | [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use </div><div>'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.</div><div> This feature will be removed in a future release. Deprecation warnings can be </div><div>disabled by setting deprecation_warnings=False in ansible.cfg.</div><div>2017-12-29 14:59:08,006 p=10135 u=ovirt | [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is</div><div> discouraged. The module documentation details page may explain more about this</div><div> rationale.. This feature will be removed in a future release. Deprecation </div><div>warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.</div><div>2017-12-29 14:59:08,139 p=10135 u=ovirt | PLAY [all] ******************************<wbr>******************************<wbr>*********</div><div>2017-12-29 14:59:08,151 p=10135 u=ovirt | TASK [Gathering Facts] ******************************<wbr>***************************</div><div>2017-12-29 14:59:08,477 p=10135 u=ovirt | fatal: [rhevh1.ab.lab]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh_exchange_identification: Connection closed by remote host\r\n", "unreachable": true}</div><div>2017-12-29 14:59:08,478 p=10135 u=ovirt | PLAY RECAP ******************************<wbr>******************************<wbr>*********</div><div>2017-12-29 14:59:08,478 p=10135 u=ovirt | rhevh1.ab.lab : ok=0 changed=0 unreachable=1 failed=0 </div></div><div><br></div><div><br></div><div>- Questions:</div><div>1) How could I resolve this issue? </div><div>2) Is this behaviors considered as a bug to be reported?</div><div><br></div><div>Thanks,</div><div>Ab</div><span class="HOEnZb"><font color="#888888">--
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font size="1">Martin Perina<br>Associate Manager, Software Engineering<br>Red Hat Czech s.r.o.<br></font></div></div>
</div></div>