<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> </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-deploy/ovirt-host-deploy-ansible-20171229144439-rhevh1.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-deploy/ovirt-host-deploy-ansible-20171229144439-rhevh1.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] *********************************************************************</div><div> 2017-12-29 14:44:40,469 p=9666 u=ovirt | TASK [Gathering Facts] *********************************************************</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 *********************************************************************</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/Ff7gPJsQ9Hz9SSBBc5ts.</div><div> ECDSA key fingerprint is MD5:12:ca:c7:84:93:50:3f:33: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-deploy/ovirt-host-deploy-ansible-20171229145907-rhevh1.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] *********************************************************************</div><div>2017-12-29 14:59:08,151 p=10135 u=ovirt | TASK [Gathering Facts] *********************************************************</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 *********************************************************************</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>--
</div></div>