Bug 1999032

Summary: 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'"}
Product: [oVirt] vdsm Reporter: zhoujunqin <juzhou>
Component: GeneralAssignee: Marcin Sobczyk <msobczyk>
Status: CLOSED CURRENTRELEASE QA Contact: Guilherme Santos <gdeolive>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.40.80.5CC: bugs, chhu, lsurette, mavital, mburman, michal.skrivanek, mperina, msobczyk, sasundar, srevivo, tyan, tzheng, ycui
Target Milestone: ovirt-4.4.8-1Flags: mperina: ovirt-4.4+
lsvaty: exception+
Target Release: 4.40.80.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: libvirt_RHV_INT
Fixed In Version: vdsm-4.40.80.6 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-24 09:23:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
log for engine.log none

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