Description of problem: When using freshly installed engine with clean db changing cluster version fails with NPE on the backend. Version-Release number of selected component (if applicable): How reproducible: 100% reproducible Steps to Reproduce: 1. Install ovirt-engine (no contents in db) 2. edit DC and change version to 3.5 3. edit cluster and change version to 3.5 (no changes to cpu type, ui do not require it) Actual results: engine backend fails with NPE: 2015-12-03 16:05:37,480 ERROR [org.ovirt.engine.core.bll.GetClusterEditWarningsQuery] (default task-29) [] Query 'GetClusterEditWarningsQuery' failed: null 2015-12-03 16:05:37,480 ERROR [org.ovirt.engine.core.bll.GetClusterEditWarningsQuery] (default task-29) [] Exception: java.lang.NullPointerException at org.ovirt.engine.core.bll.UnsupportedVmCpuClusterEditChecker.isApplicable(UnsupportedVmCpuClusterEditChecker.java:23) [bll.jar:] at org.ovirt.engine.core.bll.UnsupportedVmCpuClusterEditChecker$Proxy$_$$_WeldClientProxy.isApplicable(Unknown Source) [bll.jar:] at org.ovirt.engine.core.bll.GetClusterEditWarningsQuery.lambda$getProblematicEntities$42(GetClusterEditWarningsQuery.java:70) [bll.jar:] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:174) [rt.jar:1.8.0_65] at java.util.Iterator.forEachRemaining(Iterator.java:116) [rt.jar:1.8.0_65] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) [rt.jar:1.8.0_65] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) [rt.jar:1.8.0_65] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) [rt.jar:1.8.0_65] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) [rt.jar:1.8.0_65] Expected results: Cluster version updated and no issues in the log. Additional info: This issue occurs on 3.6 branch as well.
looks like the exception is in the backend -> removing the "[ui]" prefix from the summary (a bit misleading).
I still think that it is UI issue. The cpu type is not validated before sending request to the engine.
I think the two bugs are different. However, it seems related to bug 1261851. Micahl, can someone at virt take a look? Piotr, this might be fixed by a UI validation, but the engine code should throw npe.
I reopened bug 1261851 and marking this as duplicate. *** This bug has been marked as a duplicate of bug 1261851 ***