Created attachment 1675279 [details] host + engine all logs Description of problem: Failed to register 4.4 host to the latest engine (4.4.0-0.29.master.el8ev) Host cshao installation failed. Task Reset configuration of advanced virtualization module failed to execute: . Version-Release number of selected component (if applicable): Host: redhat-virtualization-host-4.4.0-20200330.0.el8_2 vdsm-4.40.9-1.el8ev.x86_64 Engine: ovirt-engine-4.4.0-0.29.master.el8ev.noarch How reproducible: 100% Steps to Reproduce: 1. Install RHVH-4.4-20200330.0-RHVH-x86_64-dvd1.iso via anaconda GUI. 2. Register to the latest engine. 3. Actual results: Failed to register 4.4 host to the latest engine (4.4.0-0.29.master.el8ev) Expected results: Register to engine can succeed. Additional info: No such issue on previous engine(4.4.0-0.26.master.el8e), so it is a engine regression bug
already reported in bug 1819248 *** This bug has been marked as a duplicate of bug 1819248 ***
Reopening, this is not a duplicate of BZ1819248. We have this error during host deploy: {"changed": true, "cmd": "dnf -y module reset virt", "delta": "0:00:05.459894", "end": "2020-04-01 01:42:06.620621", "msg": "non-zero return code", "rc": 1, "start": "2020-04-01 01:42:01.160727", "stderr": "Unable to resolve argument virt\nError: Problems in request:\nmissing groups or modules: virt", "stderr_lines": ["Unable to resolve argument virt", "Error: Problems in request:", "missing groups or modules: virt"], "stdout": "Updating Subscription Management repositories.\nUnable to read consumer identity\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.", "stdout_lines": ["Updating Subscription Management repositories.", "Unable to read consumer identity", "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."]} It looks like there is an error reseting advanced virt module on RHVH. So how we should handle RHVH? To enable advanced virt module or not? If not, how can we detect that a host is a NGN or RHVH and not CentOS/RHEL?
IIUC we will not be shipping the virt module in the rhvh channel. What we do, is ship the content of the virt module inside the image so I think we can skip this step in rhvh
As for detecting you can check in /etc/os-release if VARIANT_ID is ovirt-node. Another alternative is to try and execute `imgbase w`, if it works, then it's probably ovirt-node-ng/rhvh
Another way is to detect if we're on ngn/rhvh is to check if either file exists: /usr/lib/os.release.d/ovirt-release-host-node or /usr/lib/os.release.d/os-release-rhv-host
Test version: engine: 4.4.0-0.32.master.el8ev redhat-virtualization-host-4.4.0-20200409.1.el8_2 Register RHVH to engine can succeed, so the bug is fixed. Change bug status to VERIFIED.
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 (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement 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:3247