Bug 2081009

Summary: new template menu fails in ui uncaught exception
Product: [oVirt] ovirt-engine Reporter: D. Ercolani <licenze+RedHat>
Component: Frontend.WebAdminAssignee: Lucia Jelinkova <ljelinko>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.5.0.5CC: ahadas, bugs, mavital
Target Milestone: ---Flags: mavital: testing_plan_complete-
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.5.0.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-23 11:23:38 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:

Description D. Ercolani 2022-05-02 14:39:10 UTC
There is something wrong in the ui transforming a powered off machine to template, as suggested by the UI there is an exception recorded in ui.log:
2022-05-02 14:30:40,703Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-101) [] Permutation name: A3F26EED931694AB67137E0F77233AF3
2022-05-02 14:30:40,704Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-101) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : Kgb(...) is undefined
        at org.ovirt.engine.ui.uicommonweb.builders.vm.HwOnlyCoreUnitToVmBaseBuilder.$postBuild(HwOnlyCoreUnitToVmBaseBuilder.java:24)
        at org.ovirt.engine.ui.uicommonweb.builders.vm.CoreUnitToVmBaseBuilder.postBuild(CoreUnitToVmBaseBuilder.java:33)
        at org.ovirt.engine.ui.uicommonweb.builders.vm.HwOnlyCoreUnitToVmBaseBuilder.postBuild(HwOnlyCoreUnitToVmBaseBuilder.java:24)
        at org.ovirt.engine.ui.uicommonweb.builders.CompositeBuilder$LastBuilder.build(CompositeBuilder.java:45)
        at org.ovirt.engine.ui.uicommonweb.builders.BaseSyncBuilder.build(BaseSyncBuilder.java:13)
        at org.ovirt.engine.ui.uicommonweb.builders.BaseSyncBuilder.build(BaseSyncBuilder.java:13)
        at org.ovirt.engine.ui.uicommonweb.builders.CompositeBuilder.build(CompositeBuilder.java:21)
        at org.ovirt.engine.ui.uicommonweb.builders.CompositeBuilder.build(CompositeBuilder.java:21)
        at org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.$build(BuilderExecutor.java:61)
        at org.ovirt.engine.ui.uicommonweb.builders.BuilderExecutor.build(BuilderExecutor.java:28)
        at org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.$postNameUniqueCheck(VmListModel.java:1337)
        at org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.$lambda$14(VmListModel.java:1315)
        at org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel$lambda$14$Type.onSuccess(VmListModel.java:1315)
        at org.ovirt.engine.ui.frontend.Frontend$1.$onSuccess(Frontend.java:239)
        at org.ovirt.engine.ui.frontend.Frontend$1.onSuccess(Frontend.java:239)
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$1.$onSuccess(OperationProcessor.java:133)
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$1.onSuccess(OperationProcessor.java:133)
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$3$1.$onSuccess(GWTRPCCommunicationProvider.java:161)
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$3$1.onSuccess(GWTRPCCommunicationProvider.java:161)
        at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:198)
        at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:233)
        at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409)
        at Unknown.onreadystatechange<(https://ovirt-engine.ovirt/ovirt-engine/webadmin/?locale=it_IT line 9 > injectedScript)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java:306)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:345)

Comment 1 Sharon Gratch 2022-05-12 14:07:42 UTC
It is not reproduced to me, I guess it requires a specific VM configuration.

Comment 2 Arik 2022-05-23 11:23:38 UTC
This was fixed in ovirt-engine-4.5.0.8 so please upgrade as soon as practical

Comment 3 Lucia Jelinkova 2022-05-23 11:26:28 UTC
The issue occurred only when there were no other templates except for the Blank template. As a workaround, one can create any template using REST API and then the UI should work as expected.