Bug 2023786 - RHV VM with SAP monitoring configuration does not fail to start if the Host is missing vdsm-hook-vhostmd
Summary: RHV VM with SAP monitoring configuration does not fail to start if the Host i...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ovirt-4.5.0
: 4.5.0
Assignee: Lucia Jelinkova
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-16 14:55 UTC by Koutuk Shukla
Modified: 2022-08-01 16:43 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-05-26 16:23:22 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-44037 0 None None None 2021-11-16 15:02:57 UTC
Red Hat Product Errata RHSA-2022:4711 0 None None None 2022-05-26 16:23:52 UTC
oVirt gerrit 118365 0 master MERGED engine: Add host hooks filter 2022-02-01 10:56:41 UTC

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


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