Bug 1855164

Summary: Failure to add hosts to RHV default cluster as part of RHHI-V 1.8 deployment
Product: [oVirt] ovirt-ansible-collection Reporter: SATHEESARAN <sasundar>
Component: hosted-engine-setupAssignee: Gobinda Das <godas>
Status: CLOSED CURRENTRELEASE QA Contact: SATHEESARAN <sasundar>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 1.1.5CC: aoconnor, bugs, emarcus, godas, pelauter, rhs-bugs
Target Milestone: ovirt-4.4.1-1Keywords: Regression
Target Release: 1.1.6Flags: sasundar: ovirt-4.4?
aoconnor: blocker+
pelauter: planning_ack+
sbonazzo: devel_ack+
sasundar: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-ansible-hosted-engine-setup-1.1.6 Doc Type: Bug Fix
Doc Text:
Previously, during RHHI-V deployment of 3 hosts using ovirt-ansible-hosted-engine-setup-1.1.6, the Self-Hosted Engine was added to the cluster, but the additional 2 hosts were not added. In this release, deployment with ovirt-ansible-hosted-engine-setup-1.1.6 successfully adds all hosts to the cluster.
Story Points: ---
Clone Of: 1855124
: 1855283 (view as bug list) Environment:
Last Closed: 2020-08-05 06:28:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Gluster RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1855124, 1855712    

Description SATHEESARAN 2020-07-09 06:37:54 UTC
Description of problem:
-----------------------
While performing RHHI-V deployment, only the HE host is added to the 'Default' cluster. But the other 2 hosts are not added to the cluster. 

Version-Release number of selected component (if applicable):
--------------------------------------------------------------
RHVH 4.4 (RHVH-4.4-20200707.0-RHVH-x86_64-dvd1.iso	)
ansible-2.9.10

How reproducible:
-----------------
Always

Steps to Reproduce:
--------------------
1. Complete the RHHI-V deployment with 3 nodes

Actual results:
----------------
RHV Manager 4.4 shows only one host in the cluster

Expected results:
-----------------
All the hosts used for deployment should be added to the cluster

Additional info:
----------------
1. This flow worked till last RHVH 4.4 ISO and the latest RHVH 4.4 ISO included ansible-2.9.10 and this causing this regression
2. The issue is also seen with RHHI-V 1.7 deployment based on RHV 4.3.11

--- Additional comment from SATHEESARAN on 2020-07-09 02:49:09 UTC ---

Deployment was attempted with ansible-2.9.9 and the deployment worked good.

Comment 1 SATHEESARAN 2020-07-09 12:41:10 UTC
The issue is root caused, it is mainly because of change in ansible-2.9.10-1.el8ae

The task that add the hosts to the cluster uses 'delegate_to', with the latest
change in ansible, when using 'delegate_to' to the remote host, then the connection
parameter needs to be explicitly provided, else the value is inherited from 'ansible_connection' 
which most of the times is 'local'. So the changes happen only on the localhost, instead of
remote host.

To fix this problem, the task is expected to have 'connection: ssh' where
delegate_to: <remote-host> is used.

Comment 2 SATHEESARAN 2020-07-18 07:24:48 UTC
Verified with ovirt-ansible-hosted-engine-setup-1.1.6 and the hosts are automatically added to the cluster

Comment 3 Sandro Bonazzola 2020-08-05 06:28:21 UTC
This bugzilla is included in oVirt 4.4.1.1 Async release, published on July 13th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.

Comment 4 Eli Marcus 2020-09-03 13:13:39 UTC
Hello Gobinda, 
please review this doc text for the release notes and Errata: 

"Previously, during RHHI-V deployment of 3 hosts using ovirt-ansible-hosted-engine-setup-1.1.6, the Self-Hosted Engine was added to the cluster, but the additional 2 hosts were not added.
In this release, deployment with ovirt-ansible-hosted-engine-setup-1.1.6 successfully adds all hosts to the cluster."

Comment 5 Eli Marcus 2020-09-03 13:18:01 UTC
(In reply to Eli Marcus from comment #4)
> Hello Gobinda, 
> please review this doc text for the release notes and Errata: 
> 
> "Previously, during RHHI-V deployment of 3 hosts using
> ovirt-ansible-hosted-engine-setup-1.1.6, the Self-Hosted Engine was added to
> the cluster, but the additional 2 hosts were not added.
> In this release, deployment with ovirt-ansible-hosted-engine-setup-1.1.6
> successfully adds all hosts to the cluster."

Hi Gobinda, minor correction, please use this text for review: 

"Previously, during RHHI-V deployment of 3 hosts using ovirt-ansible-hosted-engine-setup, the Self-Hosted Engine was added to the default cluster, but the additional 2 hosts were not added.
In this release, deployment with ovirt-ansible-hosted-engine-setup successfully adds all hosts to the cluster."

Comment 6 Gobinda Das 2020-09-04 05:08:48 UTC
Doc text looks good to me.