Bug 1746395 - Additional hosts not getting added in RHV-M
Summary: Additional hosts not getting added in RHV-M
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-ansible-collection
Classification: oVirt
Component: hosted-engine-setup
Version: 1.0.27
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: ovirt-4.3.6
: ---
Assignee: Gobinda Das
QA Contact: bipin
URL:
Whiteboard:
Depends On:
Blocks: 1744050 1746394
TreeView+ depends on / blocked
 
Reported: 2019-08-28 11:03 UTC by bipin
Modified: 2019-10-22 06:50 UTC (History)
17 users (show)

Fixed In Version: ovirt-ansible-hosted-engine-setup-1.0.28-1
Clone Of: 1746394
Environment:
Last Closed: 2019-09-26 19:43:17 UTC
oVirt Team: Gluster
Embargoed:
sbonazzo: ovirt-4.3?
sbonazzo: blocker?
sbonazzo: planning_ack?
godas: devel_ack+
sasundar: testing_ack+


Attachments (Terms of Use)
ansible.log (8.22 MB, text/plain)
2019-08-28 11:12 UTC, bipin
no flags Details
setup_target_vm (448.32 KB, text/plain)
2019-08-28 11:14 UTC, bipin
no flags Details
inventory_additional_host (632 bytes, text/plain)
2019-08-28 11:14 UTC, bipin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-hosted-engine-setup pull 242 0 None None None 2019-08-29 07:18:33 UTC

Description bipin 2019-08-28 11:03:37 UTC
+++ This bug was initially created as a clone of Bug #1746394 +++

Description of problem:
=======================
Even after adding the other 2 hosts FQDN's in additional hosts tab, the hosts are not added in RHV-M. 


Version-Release number of selected component (if applicable):
============================================================
rhvh-4.3.6.2-0.20190821.0+1
ovirt-engine-4.3.6.3-0.1.el7.noarch

How reproducible:
================
100%

Steps to Reproduce:
===================
1.Start deploying RHHI and fill the additional hosts parameters.
2.Once the deployment is completed the additional hosts are not added


Actual results:
==============
The hosts are not added


Expected results:
================
The hosts should be seen


Additional info:

--- Additional comment from bipin on 2019-08-28 11:00:34 UTC ---

2019-08-28 11:43:22,129 ovirt-hosted-engine-setup-ansible ansible on_any args TASK: ovirt.hosted_engine_setup : Add additional gluster hosts to engine kwargs is_conditional:False 
2019-08-28 11:43:22,129 ovirt-hosted-engine-setup-ansible ansible on_any args localhostTASK: ovirt.hosted_engine_setup : Add additional gluster hosts to engine kwargs 
2019-08-28 11:43:22,900 ovirt-hosted-engine-setup-ansible ansible failed {'status': 'FAILED', 'ansible_type': 'task', 'ansible_task': u'Add additional gluster hosts to engine', 'ansible_result': u'type: <type \'dict\'>\nstr: {\'msg\': u"The conditional check \'gluster is defined and hosts in gluster and gluster.hosts | length > 1\' failed. The error was: error while evaluating conditional (gluster is defined and hosts in gluster and gluster.hosts | length > 1): \'hosts\' is undefined\\n\\nThe error appears to be in \'/usr/share/', 'task_duration': 1, 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml'}
2019-08-28 11:43:22,900 ovirt-hosted-engine-setup-ansible ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f1e8ae50dd0> kwargs ignore_errors:True 
2019-08-28 11:43:23,776 ovirt-hosted-engine-setup-ansible ansible task start {'status': 'OK', 'ansible_task': u'ovirt.hosted_engine_setup : Add additional glusterfs storage domains', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml', 'ansible_type': 'task'}
2019-08-28 11:43:23,776 ovirt-hosted-engine-setup-ansible ansible on_any args TASK: ovirt.hosted_engine_setup : Add additional glusterfs storage domains kwargs is_conditional:False 
2019-08-28 11:43:23,777 ovirt-hosted-engine-setup-ansible ansible on_any args localhostTASK: ovirt.hosted_engine_setup : Add additional glusterfs storage domains kwargs 
2019-08-28 11:44:04,464 ovirt-hosted-engine-setup-ansible ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f1e8ae50d50> kwargs 
2019-08-28 11:44:45,324 ovirt-hosted-engine-setup-ansible ansible on_any args <ansible.executor.task_result.TaskResult object at 0x7f1e8ae502d0> kwargs 
2019-08-28 11:44:46,083 ovirt-hosted-engine-setup-ansible ansible ok {'status': 'OK', 'ansible_type': 'task', 'ansible_task': u'Add additional glusterfs storage domains', 'task_duration': 83, 'ansible_host': u'localhost', 'ansible_playbook': u'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml'}

--- Additional comment from RHEL Product and Program Management on 2019-08-28 11:00:39 UTC ---

This bug report has Keywords: Regression or TestBlocker.

Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release.

Please resolve ASAP.

Comment 1 bipin 2019-08-28 11:12:39 UTC
Created attachment 1608974 [details]
ansible.log

Comment 2 bipin 2019-08-28 11:14:02 UTC
Created attachment 1608975 [details]
setup_target_vm

Comment 3 bipin 2019-08-28 11:14:32 UTC
Created attachment 1608976 [details]
inventory_additional_host

Comment 5 Sandro Bonazzola 2019-08-29 07:20:32 UTC
Not included in 1.0.27, will be included in next build.

Comment 6 Sahina Bose 2019-09-04 14:38:38 UTC
Sandro, will this be included in 4.3.6?

Comment 7 bipin 2019-09-06 05:32:18 UTC
Verified the bug using cockpit-ovirt-dashboard-0.13.8-1.el7ev.noarch & ovirt-ansible-hosted-engine-setup-1.0.28-1.el7ev.noarch
The additional hosts are now automatically added to the RHV-M.
So closing the bug.


Logs:
=====
2019-09-06 10:44:03,952+05 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-1) [5da7dd55] EVENT_ID: USER_ADD_VDS(42), Host rhsqa-grafton8-nic2.lab.eng.blr.redhat.com was added by admin@internal-authz.
2019-09-06 10:44:03,957+05 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-2) [68a805c8] EVENT_ID: USER_ADD_VDS(42), Host rhsqa-grafton9-nic2.lab.eng.blr.redhat.com was added by admin@internal-authz.

Comment 8 Sandro Bonazzola 2019-09-26 19:43:17 UTC
This bugzilla is included in oVirt 4.3.6 release, published on September 26th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.6 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.


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