Bug 1947450

Summary: ovirt-host shouldn't have hard dependency on vdsm hooks
Product: Red Hat Enterprise Virtualization Manager Reporter: Michal Skrivanek <michal.skrivanek>
Component: ovirt-hostAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED ERRATA QA Contact: Wei Wang <weiwang>
Severity: high Docs Contact:
Priority: medium    
Version: 4.4.5CC: ahadas, amusil, arachman, cshao, ddacosta, delfassy, lsvaty, lveyde, mavital, mburman, mperina, msobczyk, mtessun, peyu, sbonazzo, shlei, weiwang, yaniwang
Target Milestone: ovirt-4.4.7   
Target Release: 4.4.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.40.70.1 ovirt-host-4.4.7-1 Doc Type: Enhancement
Doc Text:
The ovirt-host package no longer pulls in vdsm-hooks automatically. To use vdsm hooks, you must install the appropriate hook for the specific functionality required.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-22 15:08:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1947759    
Bug Blocks: 1947944, 1976095    

Description Michal Skrivanek 2021-04-08 13:50:09 UTC
Some of these hooks, (e.g. fcoe) are running unconditionally and may cause issues. Others (e.g. vmfex) are not too common and there is no need to always install them and forbid removing them

Let's drop them from ovirt-host Requires:

Comment 13 Wei Wang 2021-04-09 09:24:31 UTC
Discuss with cshao, change the flag qa_ack to "?"

Comment 15 Dana 2021-04-18 11:05:45 UTC
I don't remember the details on this topic
I can add the role

Comment 19 Wei Wang 2021-06-03 05:58:14 UTC
The latest build RHVH-4.4-20210527.0-RHVH-x86_64-dvd1.iso includes ovirt-host-4.4.6-1.el8ev.x86_64 and vdsm-4.40.60.7-1.el8ev.x86_64, so QE will verify this bug when rhvh 4.4.7 build coming.

Comment 21 Wei Wang 2021-06-25 03:28:30 UTC
Test Version:
RHVH-4.4-20210624.0-RHVH-x86_64-dvd1.iso
vdsm-4.40.70.5-1.el8ev.x86_64
ovirt-host-4.4.7-1.el8ev.x86_64

Test Steps:
1. Clean install RHVH
2. [root@hp-dl388g9-04 ~]# rpm -qa|grep vdsm-hook-
vdsm-hook-vmfex-dev-4.40.70.5-1.el8ev.noarch
vdsm-hook-vhostmd-4.40.70.5-1.el8ev.noarch
vdsm-hook-ethtool-options-4.40.70.5-1.el8ev.noarch
vdsm-hook-openstacknet-4.40.70.5-1.el8ev.noarch
vdsm-hook-fcoe-4.40.70.5-1.el8ev.noarch


Result:
The vdsm-hook packages are still installed with ovirt-host

bug is not fixed, move the status to "ASSIGNED"

Comment 22 Sandro Bonazzola 2021-06-25 08:00:17 UTC
On the cleanly installed RHV-H:

```
  # dnf remove  vdsm-hook\*
  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.

  Dependencies resolved.
  =========================================================================================
   Package                                     Arch    Version              Repo      Size
  =========================================================================================
  Removing:
   vdsm-hook-ethtool-options                   noarch  4.40.70.5-1.el8ev    @System  5.7 k
   vdsm-hook-fcoe                              noarch  4.40.70.5-1.el8ev    @System  7.3 k
   vdsm-hook-openstacknet                      noarch  4.40.70.5-1.el8ev    @System   43 k
   vdsm-hook-vhostmd                           noarch  4.40.70.5-1.el8ev    @System   23 k
   vdsm-hook-vmfex-dev                         noarch  4.40.70.5-1.el8ev    @System   21 k
  Removing dependent packages:
   redhat-release-virtualization-host-content  x86_64  4.4.7-1.el8ev        @System    0  

  Transaction Summary
  =========================================================================================
  Remove  6 Packages
```

So the presence of the hooks is not due to ovirt-host. Opening a bug for it, moving this back to MODIFIED.

Comment 24 Wei Wang 2021-07-01 01:01:49 UTC
QE will verify this bug after the new build is coming.

Comment 25 Wei Wang 2021-07-07 05:41:41 UTC
Test with RHVH-4.4-20210705.2-RHVH-x86_64-dvd1.iso, there are no package related vdsm hooks.
bug is fixed, move it to "VERIFIED"

Comment 30 errata-xmlrpc 2021-07-22 15:08:31 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 (RHV RHEL Host (ovirt-host) [ovirt-4.4.7]), 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/RHBA-2021:2864