Bug 1999032 - Failed to add rhel host to rhv engine server with error - VDSM host-38 command Get Host Capabilities failed: Internal JSON-RPC error: {'reason': "'libvirt'"}
Summary: Failed to add rhel host to rhv engine server with error - VDSM host-38 comman...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: General
Version: 4.40.80.5
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.4.8-1
: 4.40.80.6
Assignee: Marcin Sobczyk
QA Contact: Guilherme Santos
URL:
Whiteboard: libvirt_RHV_INT
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-30 09:43 UTC by zhoujunqin
Modified: 2021-09-24 09:23 UTC (History)
13 users (show)

Fixed In Version: vdsm-4.40.80.6
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-24 09:23:32 UTC
oVirt Team: Infra
Embargoed:
mperina: ovirt-4.4+
lsvaty: exception+


Attachments (Terms of Use)
log for engine.log (125.24 KB, text/plain)
2021-08-30 09:43 UTC, zhoujunqin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-43162 0 None None None 2021-08-30 09:44:48 UTC
oVirt gerrit 116352 0 None None None 2021-08-30 10:52:58 UTC
oVirt gerrit 116374 0 ovirt-4.4.z MERGED osinfo: Remove unnecessary '.decode' calls 2021-08-31 08:36:05 UTC
oVirt gerrit 116377 0 ovirt-4.4.8 MERGED osinfo: Remove unnecessary '.decode' calls 2021-08-31 08:02:24 UTC

Description zhoujunqin 2021-08-30 09:43:22 UTC
Created attachment 1819038 [details]
log for engine.log

Description of problem:
Failed to add rhel host to rhv engine server with error - VDSM host-38 command Get Host Capabilities failed: Internal JSON-RPC error: {'reason': "'libvirt'"}

Version-Release number of selected component (if applicable):
RHV ENGINE INFO:
rhvm-4.4.8.5-0.4.el8ev.noarch
ovirt-engine-4.4.8.5-0.4.el8ev.noarch

RHEL HOST INFO:
libvirt-7.6.0-2.module+el8.5.0+12219+a5ea13d2.x86_64
vdsm-4.40.80.5-1.el8ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Setup the rhv engine server.
2. Install an RHEL-AV 8.5.0 host and add it to the rhv engine.

# ansible-playbook playbooks/rhv_host_deploy.yaml
...
TASK [host_deploy : Login to rhvm] *****************************************************************
ok: [hp-dl385g10-03.lab.eng.pek2.redhat.com]

TASK [host_deploy : Register host] *****************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: Exception: Error message: ['Host host-38 installation failed. Failed to configure management network on the host.', 'VDSM host-38 command CollectVdsNetworkDataAfterInstallationVDS failed: Internal JSON-RPC error: {\'reason\': "\'libvirt\'"}']
failed: [$rhv-server] (item={'cluster': 'Default', 'name': 'host-38', 'address': '$rhv_host_ip'}) => {"ansible_loop_var": "item", "changed": false, "item": {"address": "$rhv_host_ip", "cluster": "Default", "name": "host-38"}, "msg": "Error message: ['Host host-38 installation failed. Failed to configure management network on the host.', 'VDSM host-38 command CollectVdsNetworkDataAfterInstallationVDS failed: Internal JSON-RPC error: {\\'reason\\': \"\\'libvirt\\'\"}']"}

PLAY RECAP *****************************************************************************************
$rhv_server : ok=2    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

Actual results:
As the description.

Expected results:
Fix it.

Additional info:
I will attach the vdsm.log and libvirtd.log and engine.log, thanks.

Comment 3 Michal Skrivanek 2021-08-30 11:11:18 UTC
needs 4.4.9 backport

Comment 4 zhoujunqin 2021-08-30 12:24:40 UTC
(In reply to Michal Skrivanek from comment #3)
> needs 4.4.9 backport

Hi Michal,
Any workaround at this moment before backporting to 4.4.9, thanks.

BR,
juzhou.

Comment 5 Michal Skrivanek 2021-08-31 08:08:58 UTC
(In reply to zhoujunqin from comment #4)
> (In reply to Michal Skrivanek from comment #3)
> > needs 4.4.9 backport
> 
> Hi Michal,
> Any workaround at this moment before backporting to 4.4.9, thanks.
> 
> BR,
> juzhou.

yes, you can apply that same patch locally on running env, or possibly downgrade the rpm package to 8.4 version

Comment 6 Guilherme Santos 2021-09-09 16:38:12 UTC
Verified on:
vdsm-4.40.80.6-1.el8ev.x86_64
libvirt-7.0.0-14.4.module+el8.4.0+12413+d23780e6.x86_64

Host with RHEL8.5 AV successfully installed in a RHV 4.4.8.4-0.7.el8ev


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