Description of problem: After changing the cluster CPU model and power off/on a VM, the warning "The VM CPU does not match the Cluster CPU Type" is still displayed when you go to the list of VMs of a Host. Version-Release number of selected component (if applicable): ovirt-engine-4.4.6.8-0.1.el8ev.noarch Cluster and DC at 4.6 compatibility level. How reproducible: Always Steps to Reproduce: 1. Change the cluster CPU type. A warning is displayed in all VMs. 2. Power off and power on the VMs. Actual results: In Compute -> Virtual Machines: the warning has disappeared, that's expected. In Compute -> Host -> select a host -> Virtual Machines: This warning is still displayed on the VMs: "The VM CPU does not match the Cluster CPU Type" Expected results: There should be no warning as the VM is now running with the cluster CPU model. Additional info: Restarting ovirt-engine resolved the issue.
I can confirm the issue. It is not connected to the change of the CPU, the message is present for all of the running VMs on Host VM view and also for Network VM view. There is a different issue that the warning sign is not displayed, but you can see the wrong message when you roll over the status icon. The reason for displaying the wrong message is that the HostVmListModel and NetworkVmListModel do not use default search query that sets setConfiguredCpuVerb property of the VM used to calculate if the message should be displayed.
Verified on RHV 4.5.0-6. Env: - Engine instance with RHV 4.5.0-6 (ovirt-engine-4.5.0.2-0.7.el8ev) and RHEL 8.6 installed. - 3 hosts with RHV 4.5.0-6 and RHEL 8.6 and with vdsm-4.50.0.12-1.el8ev. Steps: In Admin Portal: 1. Create a 4.7 data center and a 4.7 cluster with the CPU type "Secure Intel Broadwell Family". 2. Install the hosts and create a new NFS storage domain. 3. Create an RHEL VM. 4. Run the VM. 5. Edit the cluster and change the CPU type "Secure Intel Skylake Server Family". 6. In both the VMs tab and the host the VM is running on, in its VMs tab, Check that the VM has a warning sign next to it and when hovering on it, the message "The VM CPU does not match the Cluster CPU Type" appears. 7. Power off the VM. 8. Power On the VM. 9. Check that the warning isn't shown on both the VMs tab and the host the VM is running on, in its VMs tab. Results (As Expected): 1. The 4.7 data center and the 4.7 cluster were created. 2. The hosts were installed and the NFS storage domain was created. 3. The VM was created. 4. The VM is running. 5. The cluster's CPU type is "Secure Intel Skylake Server Family". 6. The message "The VM CPU does not match the Cluster CPU Type" appears in both the VMs tabs. 7. The VM is down. 8. The VM is up. 9. The warning isn't shown anymore on both views.
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
Due to QE capacity, we are not going to cover this issue in our automation