Bug 2081009 - new template menu fails in ui uncaught exception
Summary: new template menu fails in ui uncaught exception
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.5.0.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Lucia Jelinkova
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-02 14:39 UTC by D. Ercolani
Modified: 2022-11-22 13:28 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.5.0.8
Clone Of:
Environment:
Last Closed: 2022-05-23 11:23:38 UTC
oVirt Team: Virt
Embargoed:
mavital: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 359 0 None Merged webadmin: Fix creating of a new template 2022-05-23 11:23:37 UTC
Github oVirt ovirt-engine pull 360 0 None Merged webadmin: Fix creating of a new template 2022-05-23 11:23:37 UTC
Red Hat Issue Tracker RHV-45911 0 None None None 2022-05-02 15:13:15 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.