Bug 1855283 - Failure to add hosts to RHV default cluster as part of RHHI-V 1.8 deployment
Summary: Failure to add hosts to RHV default cluster as part of RHHI-V 1.8 deployment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-ansible-roles
Version: 4.3.11
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ovirt-4.3.11
: 4.3.11
Assignee: Gobinda Das
QA Contact: SATHEESARAN
URL:
Whiteboard:
Depends On:
Blocks: 1854760
TreeView+ depends on / blocked
 
Reported: 2020-07-09 12:59 UTC by SATHEESARAN
Modified: 2022-07-09 11:25 UTC (History)
10 users (show)

Fixed In Version: ovirt-ansible-hosted-engine-setup-1.0.37
Doc Type: Bug Fix
Doc Text:
Previously, during RHHI-V deployment of three hosts using ovirt-ansible-hosted-engine-setup, the host for the Self-Hosted Engine was added to the default cluster, but the remaining two hosts were not added. In this release, deployment with ovirt-ansible-hosted-engine-setup adds all hosts to the cluster.
Clone Of: 1855164
Environment:
Last Closed: 2020-09-30 10:13:00 UTC
oVirt Team: Gluster
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-hosted-engine-setup pull 342 0 None closed delegate need connection: ssh for remote host 2020-10-05 20:11:00 UTC
Github oVirt ovirt-ansible-hosted-engine-setup pull 345 0 None closed delegate need connection: ssh for remote host 2020-10-05 20:10:52 UTC
Red Hat Bugzilla 1855164 0 urgent CLOSED Failure to add hosts to RHV default cluster as part of RHHI-V 1.8 deployment 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHSA-2020:4114 0 None None None 2020-09-30 10:13:37 UTC

Description SATHEESARAN 2020-07-09 12:59:58 UTC
+++ This bug was initially created as a clone of Bug #1855164 +++

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.

--- Additional comment from SATHEESARAN on 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 4 Michal Skrivanek 2020-07-13 12:14:38 UTC
MODIFIED?

Comment 5 Gobinda Das 2020-07-13 12:44:36 UTC
Clearing needinfo as this is moved to MODIFIED.

Comment 6 SATHEESARAN 2020-07-14 14:14:55 UTC
Sandro,

I see that this required ovirt-ansible-hosted-engine-setup-1.0.37-1.el7ev.noarch is available
with RHVH 4.3.11 (rhvh-4.3.11.1-0.20200713.0+1)

Can this bug be moved to ON_QA ? Or we are waiting for anything else ?

Comment 10 SATHEESARAN 2020-07-21 02:15:51 UTC
Tested with ovirt-ansible-hosted-engine-setup-1.0.37-1.el7ev.noarch is available
with RHVH 4.3.11 (rhvh-4.3.11.1-0.20200713.0+1)

RHHI-V ( Hyperconverged ) deployment helped in adding additional hosts to the cluster

Comment 11 Eli Marcus 2020-09-03 13:19:56 UTC
Hi Gobinda, 
this is the same text as for BZ#1855164, please 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 12 Gobinda Das 2020-09-04 05:11:00 UTC
Looks good to me.

Comment 16 errata-xmlrpc 2020-09-30 10:13:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Virtualization security and bug fix update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2020:4114


Note You need to log in before you can comment on or make changes to this bug.