Bug 1583038 - [HE] Failed to deploy RHV-H on Hosted engine
Summary: [HE] Failed to deploy RHV-H on Hosted engine
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-host-deploy
Version: 4.2.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.3.0
: ---
Assignee: Ido Rosenzwig
QA Contact: Pavol Brilla
URL:
Whiteboard:
Depends On: 1583045
Blocks: 1584523
TreeView+ depends on / blocked
 
Reported: 2018-05-28 06:50 UTC by Israel Pinto
Modified: 2019-05-08 12:30 UTC (History)
18 users (show)

Fixed In Version: ovirt-host-deploy-1.7.4-1.el7ev
Doc Type: Bug Fix
Doc Text:
A VDSM yum plugin named 'vdsm.py' was added. Consequently, the Self-Hosted Engine setup imported the wrong vdsm module, causing it to fail. The name of the plugin was changed and now the Self-Hosted Engine setup completes successfully.
Clone Of:
: 1584523 (view as bug list)
Environment:
Last Closed: 2019-05-08 12:30:16 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (368.19 KB, application/x-xz)
2018-05-28 06:50 UTC, Israel Pinto
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:1031 0 None None None 2019-05-08 12:30:20 UTC
oVirt gerrit 91672 0 'None' MERGED Hosted-engine: log import exception stack trace 2020-04-22 12:54:40 UTC
oVirt gerrit 91676 0 'None' MERGED packaging: rename vdsm yum plugin to avoid a name clash 2020-04-22 12:54:40 UTC
oVirt gerrit 91710 0 'None' MERGED Hosted-engine: log import exception stack trace 2020-04-22 12:54:40 UTC
oVirt gerrit 91711 0 'None' MERGED packaging: rename vdsm yum plugin to avoid a name clash 2020-04-22 12:54:40 UTC

Description Israel Pinto 2018-05-28 06:50:01 UTC
Description of problem:
Failed to add host (RHEVH) 

Version-Release number of selected component (if applicable):
Engine: Software Version:4.2.3.4-0.1.el7
Host: rhvh-4.2.4.0-0.20180525.0+1 
HE:
ovirt-hosted-engine-setup-2.2.21-1.el7ev.noarch
ovirt-hosted-engine-ha-2.2.12-1.el7ev.noarch

How reproducible:
100%

Steps to Reproduce:
Deploy REHV-H host on hosted engine environment 

Actual results:
Failed to install host


Additional info:
log ovirt-host-deploy-20180528092245-lynx17.lab.eng.tlv2.redhat.com-3194b152.log:

2018-05-28 09:22:45,672+0300 ERROR otopi.plugins.ovirt_host_deploy.hosted-engine.configureha configureha._set_ha_conf:114 HA client was not imported
2018-05-28 09:22:45,673+0300 DEBUG otopi.context context._executeMethod:143 method exception
Traceback (most recent call last):
  File "/tmp/ovirt-fbe4oXrUjy/pythonlib/otopi/context.py", line 133, in _executeMethod
    method['method']()
  File "/tmp/ovirt-fbe4oXrUjy/otopi-plugins/ovirt-host-deploy/hosted-engine/configureha.py", line 116, in _set_ha_conf
    _('Cannot resolve ovirt_hosted_engine_ha module')
RuntimeError: Cannot resolve ovirt_hosted_engine_ha module
2018-05-28 09:22:45,674+0300 ERROR otopi.context context._executeMethod:152 Failed to execute stage 'Misc configuration': Cannot resolve ovirt_hosted_engine_ha module

Engine log:
2018-05-28 09:22:45,674+03 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) [3194b152] EVENT_ID: VDS_INSTALL_IN_PROGRESS_ERROR(511), An error has occurred during installation of Host host_mixed_3: HA client was not imported.

Comment 1 Israel Pinto 2018-05-28 06:50:55 UTC
Created attachment 1442722 [details]
logs

Comment 2 Yaniv Kaul 2018-05-28 06:56:00 UTC
I assume it's RHVH, not RHEVH?
Also, is it a regression? It's not marked as such.
If there's no workaround, it's a blocker, no?

Comment 5 Israel Pinto 2018-05-28 08:36:13 UTC
About W/A i don't know if we can, But maybe Ido does.
Ido can we W/A this?

Comment 6 Kobi Hakimi 2018-05-28 08:49:30 UTC
It also reproduced with our environment GE-1 and GE-5

Comment 9 Yihui Zhao 2018-05-29 01:50:11 UTC
Also met this issue on rhvh-4.2.4.0-0.20180525.0+1(RHVH4.2.4)

From my side, the first deployment is ok, only add the HA host met this issue:

From the engine log:
"""
2018-05-29 09:42:23,922+08 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) [1876e95f] EVENT_ID: VDS_INSTALL_IN_PROGRESS_ERROR(511), An error has occurred during installation of Host additional: HA client was not imported.
2018-05-29 09:42:23,930+08 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) [1876e95f] EVENT_ID: VDS_INSTALL_IN_PROGRESS_ERROR(511), An error has occurred during installation of Host additional: Failed to execute stage 'Misc configuration': Cannot resolve ovirt_hosted_engine_ha module.
"""

Comment 11 Ido Rosenzwig 2018-06-11 11:13:24 UTC
A quick workaround requires to rename
    /etc/yum/pluginconf.d/vdsm.conf
    /usr/share/yum-plugins/vdsm.py*
to
    /etc/yum/pluginconf.d/vdsmupgrade.conf
    /usr/share/yum-plugins/vdsmupgrade.py*

on the additional hosts before trying to deploy them.

Comment 13 Pavol Brilla 2018-08-27 08:15:57 UTC
# ls -l /etc/yum/pluginconf.d/
total 4
-rw-r--r--. 1 vdsm kvm 19 Aug 21 16:39 vdsmupgrade.conf
# ls -l /usr/share/yum-plugins/
total 12
-rw-r--r--. 1 vdsm kvm 1751 Aug 21 16:39 vdsmupgrade.py
-rw-r--r--. 2 vdsm kvm 1197 Aug 21 16:39 vdsmupgrade.pyc
-rw-r--r--. 2 vdsm kvm 1197 Aug 21 16:39 vdsmupgrade.pyo
# rpm -q ovirt-engine
ovirt-engine-4.3.0-0.0.master.20180822092543.git251acd285af.fc28.noarch

Comment 14 Sandro Bonazzola 2018-11-26 15:38:09 UTC
Referenced in vdsm v4.30.3 despite this bug is on ovirt-host-deploy.

Comment 16 errata-xmlrpc 2019-05-08 12:30:16 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, 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/RHEA-2019:1031


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