Bug 2100812

Summary: [RHV 4.4 SP1] UI exception while creating template of a VM
Product: Red Hat Enterprise Virtualization Manager Reporter: Ulhas Surse <usurse>
Component: ovirt-web-uiAssignee: Sharon Gratch <sgratch>
Status: CLOSED CURRENTRELEASE QA Contact: Guilherme Santos <gdeolive>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.5.0CC: abhinn, adevolder, amashah, arajendr, daschmid, isaranov, michael.lackner, michal.skrivanek, xiang.fang, ymotiyel
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-29 07:02:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
snapshot of make template error none

Description Ulhas Surse 2022-06-24 10:56:54 UTC
Description of problem:
- There is UI exception while creating a VM template. 

Version-Release number of selected component (if applicable):
RHV 4.5 / RHV 4.4 SP1

How reproducible:
Always

Steps to Reproduce:
1. Create a RHEL 8 VM with/ without cloud-init installed. 
2. Try to create / make template  
3. UI exception would not allow creating template:

~~~
Uncaught exception occurred. Please try reloading the page. Details: (TypeError) : tgb(...) is undefined
Please have your administrator check the UI logs
~~~

Actual results:
unable to create template

Expected results:
Template should be created

Additional info:

Comment 12 Xiang Fang 2022-07-27 02:49:39 UTC
Created attachment 1899568 [details]
snapshot of make template error

the attached is the snapshot of error.

Comment 13 Xiang Fang 2022-07-28 01:22:42 UTC
I also tried to import the template from ova file and it was also failed.

Although the call path is difference from create template from VMs, the error message is same:
[] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : tgb(...) is undefined

here is detail ui.log output:
2022-07-27 20:00:58,142+08 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-15) [] Permutation name: 3CE9C1F8DC5CFDC234CAEAA2202AFDD5
2022-07-27 20:00:58,142+08 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-15) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : tgb(...) is undefined
        at org.ovirt.engine.ui.webadmin.section.main.view.popup.ImportTemplatesPopupView$2.$getValue(ImportTemplatesPopupView.java:157)
        at org.ovirt.engine.ui.webadmin.section.main.view.popup.ImportTemplatesPopupView$2.getValue(ImportTemplatesPopupView.java:157)
        at com.google.gwt.user.cellview.client.Column.render(Column.java:164)
        at com.google.gwt.user.cellview.client.AbstractCellTableBuilder.$renderCell(AbstractCellTableBuilder.java:188)
        at com.google.gwt.user.cellview.client.DefaultCellTableBuilder.$buildRowImpl(DefaultCellTableBuilder.java:62)
        at com.google.gwt.user.cellview.client.AbstractCellTableBuilder.$buildRow(AbstractCellTableBuilder.java:85)
        at com.google.gwt.user.cellview.client.AbstractCellTable.$buildRowValues(AbstractCellTable.java:2350)
        at com.google.gwt.user.cellview.client.AbstractCellTable.replaceAllChildren(AbstractCellTable.java:2149)
        at com.google.gwt.user.cellview.client.AbstractHasData$View.replaceAllChildren(AbstractHasData.java:265)
        at com.google.gwt.user.cellview.client.HasDataPresenter.$resolvePendingState(HasDataPresenter.java:1062)
        at com.google.gwt.user.cellview.client.HasDataPresenter$2.execute(HasDataPresenter.java:981)
        at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:167)
        at com.google.gwt.core.client.impl.SchedulerImpl.$flushFinallyCommands(SchedulerImpl.java:272)
        at com.google.gwt.core.client.impl.Impl.exit(Impl.java:383)
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:345)
        at Unknown.Ny/<(https://icx-dc-mgmt.icx.com/ovirt-engine/webadmin/?locale=en_US line 9 > injectedScript)
        at Unknown.anonymous(Unknown)

Comment 14 Michal Skrivanek 2022-07-29 07:02:57 UTC
see bug 2081009
this is fixed in ovirt-engine-4.5.0.8 / RHV 4.5.1(https://access.redhat.com/errata/RHSA-2022:5555)

as for RHV appliance, you have to update it duringafter deployment, it's 4.5.0