Bug 2023786

Summary: RHV VM with SAP monitoring configuration does not fail to start if the Host is missing vdsm-hook-vhostmd
Product: Red Hat Enterprise Virtualization Manager Reporter: Koutuk Shukla <kshukla>
Component: ovirt-engineAssignee: Lucia Jelinkova <ljelinko>
Status: CLOSED ERRATA QA Contact: Qin Yuan <qiyuan>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4.8CC: ahadas, emarcus, klaas, mavital, mperina, qiyuan
Target Milestone: ovirt-4.5.0Keywords: ZStream
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.0 Doc Type: Enhancement
Doc Text:
When a VM is set with the custom property sap_agent=true, it requires vhostmd hooks to be installed on the host to work correctly. Previously, if the hooks were missing, there was no warning to the user. In this release, when the required hooks are not installed and reported by the host, the host is filtered out by the scheduler when starting the VM.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-26 16:23:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Koutuk Shukla 2021-11-16 14:55:55 UTC
Description of problem:

RHV VM with SAP monitoring configuration does not fail to start if the Host is missing vdsm-hook-vhostmd

Version-Release number of selected component (if applicable):
RHV 4.4.8.6

How reproducible:
100%

Steps to Reproduce:

1. Make sure the RHV host is missing vdsm-hook-vhostmd
2. Shut-down VM --> Edit and in the Custom Properties text field, select sap_agent and set this to true, then Click OK
3. Start the VM

Actual results:
VM starts without any errors OR warning message.

Expected results:
VM start should fail OR at-least display a warning about missing vdsm-hook-vhostmd package on the Host where it is started.

Additional info:

Comment 1 Arik 2021-11-22 12:16:07 UTC
As the hooks are reported by VDSM, the engine can prevent VMs that require that hook to be scheduled to hosts in which it doesn't exist

Comment 5 Qin Yuan 2022-04-18 06:38:06 UTC
Verified with:
ovirt-engine-4.5.0.2-0.7.el8ev.noarch

Steps:
1. Prepare two hosts:
   - host1 with vdsm-hook-vhostmd installed, and the hooks are present on engine.
   - host2 without vdsm-hook-vhostmd installed
2. Create a VM with sap_agent=true
3. Run the VM on host2
4. Run the VM on host1
5. Migrate the VM from host1 to host2

Results:
1. Can't run the VM on host2, there is a Operation Canceled pop-up window saying:
    Cannot run VM. There is no host that satisfies current scheduling constraints. See below for details:
    The host host_2 did not satisfy internal filter Host-hooks because the host does not contain required VDS hook 50_vhostmd.
2. Can run the VM on host1 successfully.
3. Can't migrate the VM from host1 to host2, it says no available host to migrate VMs to. 

The bug fix works as expected, move the bug status to VERIFIED.

Comment 10 errata-xmlrpc 2022-05-26 16:23:22 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 (Moderate: RHV Manager (ovirt-engine) [ovirt-4.5.0] security 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-2022:4711

Comment 11 meital avital 2022-08-01 16:43:44 UTC
Due to QE capacity, we are not going to cover this issue in our automation