Description of problem: When trying to update VM properties on 4.2, an engine error pops up and the change is not saved Version-Release number of selected component (if applicable): ovirt-engine-4.2.0-1.el7.centos How reproducible: always Steps to Reproduce: 1. upgrade Engine from 4.1 to 4.2 (still on 4.1 cluster level) 2. create new VM 3. try to update VM settings (change RAM/CPU/RNG/etc) Actual results: Error while executing action Edit VM properties: Internal Engine Error Expected results: changes applied successfully Additional info: will paste the stack trace in the next comment
Created attachment 1364525 [details] engine.log during VM edit attempt
Note: this applies to VMs created before 4.2 as well, not just newly created ones.
I can also confirm that changing cluster and DC compatibility level to 4.2 makes the NPE go away so it is related to engine-4.2 updating VMs in 4.1 compatibility mode only.
VmBaseDao::createBaseParametersMapper .addValue("resume_behavior", entity.getResumeBehavior().toString()) plus entity.setResumeBehavior(resumeBehavior == null ? null : VmResumeBehavior.valueOf(resumeBehavior)) => bam
in meanwhile a new branch have appeared, moving back to post until the patch will merged there
I would include additional patch to fix OVF reader
there is a small leftover issue that in some case the resume behavior is reported as a changed field requiring to restart the VM even if it did not change. Tracked here: https://bugzilla.redhat.com/show_bug.cgi?id=1524419
ok, ovirt-engine-webadmin-portal-4.2.0.2-0.1.el7.noarch
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.