Hello Martin, 

Thank you for your reply. 

Sorry for not saying that, but using root password was not working for me, so I used SSH public key as an alternative way.

I have created bug ID '1529851', but please let me know if you need me tho check any other steps from my side.
https://bugzilla.redhat.com/show_bug.cgi?id=1529851

Best regards,
Ab

On Sat, Dec 30, 2017 at 10:45 AM, Martin Perina <mperina@redhat.com> wrote:


On Fri, Dec 29, 2017 at 3:05 PM, Abdurrahman A. Ibrahim <a.rahman.attia@gmail.com> wrote:
Hi all, 

- Here is a simple architecture for my demo deployment using KVM VMs:
1) rhevm1.ab.lab -> oVirt Engine (CentOS 7.4 x86_64)
2) rhevh1.ab.lab -> oVirt Enterprise Linux Host (CentOS 7.4 x86_64)
3) rhevh2.ab.lab ->  oVirt Enterprise Linux Host (CentOS 7.4 x86_64)

- How to reproduce issue:
1) I installed 'ovirt-engine' successfully. 

2) I tried to add 'rhevh1.ab.lab' from 'rhevm1.ab.lab' using SSH public key.

​Hi,

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?

Thanks

Martin
   
    Everything was OK until I had the following error message:
    "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."

    Checking log file showed the following:
    [root@rhevm1 tmp]# cat /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20171229144439-rhevh1.ab.lab-13b2b5c4.log
    2017-12-29 14:44:40,320 p=9666 u=ovirt |  [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use
    ' import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
    This feature will be removed in a future release. Deprecation warnings can be
    disabled by setting deprecation_warnings=False in ansible.cfg.
    2017-12-29 14:44:40,321 p=9666 u=ovirt |  [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is
    discouraged. The module documentation details page may explain more about this
    rationale.. This feature will be removed in a future release. Deprecation 
    warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
    2017-12-29 14:44:40,458 p=9666 u=ovirt |  PLAY [all] *********************************************************************
    2017-12-29 14:44:40,469 p=9666 u=ovirt |  TASK [Gathering Facts] *********************************************************
    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}  
    2017-12-29 14:44:40,802 p=9666 u=ovirt |  PLAY RECAP *********************************************************************
    2017-12-29 14:44:40,802 p=9666 u=ovirt |  rhevh1.ab.lab              : ok=0    changed=0    unreachable=1    failed=0

3) I tried to simulate Ansilbe role work by using simple ansible module using 'root' user:
   [root@rhevm1 tmp]# ansible -m ping rhevhs -i /tmp/tmphosts 
   The authenticity of host '192.168.150.21 (<no hostip for proxy command>)' can't be established. 
   ECDSA key fingerprint is SHA256:fPem/Gn67v6tEbQpX/NJix/Ff7gPJsQ9Hz9SSBBc5ts.
  ECDSA key fingerprint is MD5:12:ca:c7:84:93:50:3f:33:b5:39:e2:20:2d:13:17:43.  
  Are you sure you want to continue connecting (yes/no)? yes
  192.168.150.21 | SUCCESS => {
      "changed": false, 
      "ping": "pong"
  }


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.

5) I have tried to disable this feature in ansible.cfg file:
[root@rhevm1 tmp]# grep host_key_checking /etc/ansible/ansible.cfg 
host_key_checking = False

6) Again the same results:
[root@rhevm1 tmp]# cat /var/log/ovirt-engine/host-deploy/ovirt-host-deploy-ansible-20171229145907-rhevh1.ab.lab-3e8bace0.log
2017-12-29 14:59:08,005 p=10135 u=ovirt |  [DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 
'import_tasks' for static inclusions or 'include_tasks' for dynamic inclusions.
 This feature will be removed in a future release. Deprecation warnings can be 
disabled by setting deprecation_warnings=False in ansible.cfg.
2017-12-29 14:59:08,006 p=10135 u=ovirt |  [DEPRECATION WARNING]: include is kept for backwards compatibility but usage is
 discouraged. The module documentation details page may explain more about this
 rationale.. This feature will be removed in a future release. Deprecation 
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
2017-12-29 14:59:08,139 p=10135 u=ovirt |  PLAY [all] *********************************************************************
2017-12-29 14:59:08,151 p=10135 u=ovirt |  TASK [Gathering Facts] *********************************************************
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}
2017-12-29 14:59:08,478 p=10135 u=ovirt |  PLAY RECAP *********************************************************************
2017-12-29 14:59:08,478 p=10135 u=ovirt |  rhevh1.ab.lab              : ok=0    changed=0    unreachable=1    failed=0 


- Questions:
1) How could I resolve this issue? 
2) Is this behaviors considered as a bug to be reported?

Thanks,
Ab
-- 

_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users




--
Martin Perina
Associate Manager, Software Engineering
Red Hat Czech s.r.o.



--
Abdurrahman A. Mohamed
+420-773-232-165