Bug 1838439

Summary: After editing 4.2 cluster properties it isn't possible to create 4.2 VM in the cluster
Product: [oVirt] ovirt-engine Reporter: Tamir <tamir>
Component: BLL.VirtAssignee: Steven Rosenberg <srosenbe>
Status: CLOSED CURRENTRELEASE QA Contact: Tamir <tamir>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.0CC: ahadas, bugs, rbarry, rdlugyhe, srosenbe
Target Milestone: ovirt-4.4.1Flags: pm-rhel: ovirt-4.4+
pm-rhel: devel_ack+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.1.4 Doc Type: Bug Fix
Doc Text:
Previously, in the beta version of RHV 4.4, after adding a host to a cluster with compatibility version 4.2, editing the cluster reset its *BIOS Type* from the previous automatically detected value to *Cluster default*. As a result, virtual machines could not run because a *Chip Set* does not exist for *Cluster Default*. The current release fixes this issue. It preserves the original value of *BIOS Type* and prevents it from being modified when you edit the cluster. As a result, you can create and run virtual machines normally after editing cluster properties.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 08:26:18 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:
Attachments:
Description Flags
Added logs from engine and vdsm none

Description Tamir 2020-05-21 07:29:19 UTC
Created attachment 1690539 [details]
Added logs from engine and vdsm

Description of problem:
After editing a 4.2 cluster (even when i didn't change any setting) and saving the changes, it isn't possible to create a 4.2 VM in that cluster. When I try to create the VM (After filling at least the name field in it and saving it) I can't proceed (After pressing OK, the window doesn't close).

In the engine log there is a NullPointerException exception in IsVmTemplateConflictsWithChipsetQuery.executeQueryCommand.

Version-Release number of selected component (if applicable):
RHV 4.4.0-36 with RHEL 8.2 installed on both engine and host

How reproducible:
100%

Steps to Reproduce:
1. Create a 4.2 compatibility data center and cluster, add a host and create and attach a data domain.
2. Edit the cluster (you don't have to change any settings) and save (press OK)
3. Try to create a VM on the same cluster (You can only write the VM name and press Ok)

Actual results:
Two first steps are working. In step 3, I fail to create the VM.

In the browser's console I see the warning: "org.ovirt.engine.ui.frontend.Frontend WARNING: Failure while invoking runQuery [null, ]"

In the engine log there's an error:
"2020-05-21 09:59:20,113+03 ERROR [org.ovirt.engine.core.bll.IsVmTemplateConflictsWithChipsetQuery] (default task-29) [798f32ba-c829-4b47-996e-8087093848ee] Query 'IsVmTemplateConflictsWithChipsetQuery' failed: null
2020-05-21 09:59:20,113+03 ERROR [org.ovirt.engine.core.bll.IsVmTemplateConflictsWithChipsetQuery] (default task-29) [798f32ba-c829-4b47-996e-8087093848ee] Exception: java.lang.NullPointerException
        at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.IsVmTemplateConflictsWithChipsetQuery.executeQueryCommand(IsVmTemplateConflictsWithChipsetQuery.java:26)
"

Expected results:
The VM is created successfully.

Additional info:

Comment 3 RHEL Program Management 2020-06-24 11:05:33 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 5 Sandro Bonazzola 2020-07-08 08:26:18 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.