Bug 2104597 - Error when importing templates from export domains
Summary: Error when importing templates from export domains
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.5.1
Hardware: All
OS: Linux
high
high
Target Milestone: ovirt-4.5.2
: ---
Assignee: Lucia Jelinkova
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On:
Blocks: 2109923
TreeView+ depends on / blocked
 
Reported: 2022-07-06 16:44 UTC by Erkan E
Modified: 2022-08-30 08:47 UTC (History)
5 users (show)

Fixed In Version: ovirt-engine-4.5.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2109923 (view as bug list)
Environment:
Last Closed: 2022-08-30 08:47:42 UTC
oVirt Team: Virt
Embargoed:
pm-rhel: ovirt-4.5?
ahadas: blocker+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-engine pull 528 0 None open webadmin: Fix template import 2022-07-18 13:49:46 UTC
Red Hat Issue Tracker RHV-47003 0 None None None 2022-07-06 16:52:45 UTC

Description Erkan E 2022-07-06 16:44:26 UTC
Description of problem:
When importing templates exported from oVirt v4.3 to oVirt v4.5, it fails and the error message below is raised. Even, it is the same for templates exported form oVirt 4.5 as well.

- "Uncaught exception occurred. Please try reloading the page. Details: (TypeError) : e is null. Please have your administrator to check the UI logs"

Version-Release number of selected component (if applicable):
Version 4.5.1.3-1.el8

How reproducible:
Always

Steps to Reproduce:
1. Export a template from oVirt v4.3 or oVirt v4.5
2. Import the template exported to oVirt v4.5
3.

Actual results:
Failed to import template

Expected results:
Template imported

Additional info:
Related logs in /var/log/ovirt-engine/ui.log:
2022-07-05 12:37:31,652Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-3) [] Permutation name: 5EAE784A6F0B215E2BA85365FFA20B1F
2022-07-05 12:37:31,652Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-3) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : e is null
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
	at org.ovirt.engine.ui.uicommonweb.models.ListModel.$setSelectedItem(ListModel.java:82)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.$setSelectedItem(SearchableListModel.java:406)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.setSelectedItem(SearchableListModel.java:406)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor.$updateListEditor(UiCommonEditorVisitor.java:189)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor.$lambda$5(UiCommonEditorVisitor.java:136)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor$lambda$5$Type.eventRaised(UiCommonEditorVisitor.java:136)
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.$setItems(SearchableListModel.java:714)
	at org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel.$lambda$0(ImportVmFromExportDomainModel.java:89)
	at org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel$lambda$0$Type.onSuccess(ImportVmFromExportDomainModel.java:89)
	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://<SERVERNAME>/ovirt-engine/webadmin/?locale=en_US 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)
	at Unknown.My/<(https://<SERVERNAME>/ovirt-engine/webadmin/?locale=en_US line 9 > injectedScript)
	at Unknown.anonymous(Unknown)

Comment 1 Arik 2022-07-07 06:47:42 UTC
Note that export domains are deprecated and are not being tested anymore, please use OVAs instead

Comment 2 RHEL Program Management 2022-07-07 06:47:48 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 3 Erkan E 2022-07-08 21:32:48 UTC
Hi Arik,

To follow your suggestion, I tried to import/export a template as OVA today (2022-07-08), instead of using "Export Domains". However, the issue is exactly the same with the same error messages.


Description of problem:
When importing templates exported from oVirt v4.3 to oVirt v4.5, it fails and the error message below is raised.

- "Uncaught exception occurred. Please try reloading the page. Details: (TypeError) : e is null. Please have your administrator to check the UI logs"

Version-Release number of selected component (if applicable):
Version 4.5.1.3-1.el8

How reproducible:
Always

Steps to Reproduce:
1. Export a template from oVirt v4.3 using "Export as OVA" onto one of the oVirt Hosts, instead of using an Export Domain.
2. Import this exported 'OVA' template to oVirt v4.5 using "Source: Virtual Appliance (OVA)" in the "Import Template(s)" window 

Actual results:
Failed to import template

Expected results:
Template imported

Additional info:
Related logs in /var/log/ovirt-engine/ui.log:
2022-07-08 15:19:01,592Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-12) [] Permutation name: 5EAE784A6F0B215E2BA85365FFA20B1F
2022-07-08 15:19:01,592Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-12) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : e is null
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
	at org.ovirt.engine.ui.uicommonweb.models.ListModel.$setSelectedItem(ListModel.java:82)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.$setSelectedItem(SearchableListModel.java:406)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.setSelectedItem(SearchableListModel.java:406)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor.$updateListEditor(UiCommonEditorVisitor.java:189)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor.$lambda$5(UiCommonEditorVisitor.java:136)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor$lambda$5$Type.eventRaised(UiCommonEditorVisitor.java:136)
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.$setItems(SearchableListModel.java:714)
	at org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel.$lambda$0(ImportVmFromExportDomainModel.java:89)
	at org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel$lambda$0$Type.onSuccess(ImportVmFromExportDomainModel.java:89)
	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://<SERVERNAME>/ovirt-engine/webadmin/?locale=en_US 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)
	at Unknown.My/<(https://<SERVERNAME>/ovirt-engine/webadmin/?locale=en_US line 9 > injectedScript)
	at Unknown.anonymous(Unknown)

Thanks.

Comment 4 Erkan E 2022-07-09 02:40:09 UTC
Arik,

Additionally, the error is the same if I export a template from oVirt 4.5 and try to import this exported template to oVirt 4.5 using OVAs.

- "Uncaught exception occurred. Please try reloading the page. Details: (TypeError) : e is null. Please have your administrator to check the UI logs"

Comment 5 Arik 2022-07-10 10:03:13 UTC
I see "ImportVmFromExportDomainModel" in the stacktrace above, which suggests you still go through export-domain
in the import-vm dialog on the webadmin, change the source to Virtual Appliance (OVA) and provide a path to an OVA that exists on the selected host

Comment 6 Erkan E 2022-07-11 16:55:26 UTC
Hi Arik,

I do not know why you see "ImportVmFromExportDomainModel" in the stacktrace, while I have tried to import/export a template as OVA, as I mentioned it in my previous comments. The error is the same for templates exported from both of oVirt v4.3 and v4.5.

Here are my steps to import using the oVirt Webadmin GUI (Version 4.5.1.3-1.el8):

- Go to "Compute > Templates";
- Press the "Import" button;
- In the "Import Template(s)" window;
  - Select "Virtual Appliance (OVA)" as Source;
  - Select the oVirt host storing the OVA templates exported before;
  - Select the path which the OVA template located in;
  - Press the "Load" button to have the list of templates on this oVirt host;
  - Select one of this template;
  - Press the "->" right arrow to add it to the list for "Virtual Machines to Import";
  - Press the "Next" button.

Right after this step, I get the error below message.
- "Uncaught exception occurred. Please try reloading the page. Details: (TypeError) : e is null. Please have your administrator to check the UI logs"

Related logs in /var/log/ovirt-engine/ui.log:
2022-07-11 10:43:21,921Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-23) [] Permutation name: 5EAE784A6F0B215E2BA85365FFA20B1F
2022-07-11 10:43:21,921Z ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-23) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : e is null
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
	at org.ovirt.engine.ui.uicommonweb.models.ListModel.$setSelectedItem(ListModel.java:82)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.$setSelectedItem(SearchableListModel.java:406)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.setSelectedItem(SearchableListModel.java:406)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor.$updateListEditor(UiCommonEditorVisitor.java:189)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor.$lambda$5(UiCommonEditorVisitor.java:136)
	at org.ovirt.engine.ui.common.editor.UiCommonEditorVisitor$lambda$5$Type.eventRaised(UiCommonEditorVisitor.java:136)
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
	at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.$setItems(SearchableListModel.java:714)
	at org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel.$lambda$0(ImportVmFromExportDomainModel.java:89)
	at org.ovirt.engine.ui.uicommonweb.models.vms.ImportVmFromExportDomainModel$lambda$0$Type.onSuccess(ImportVmFromExportDomainModel.java:89)
	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://<SERVERNAME>/ovirt-engine/webadmin/?locale=en_US 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)
	at Unknown.My/<(https://<SERVERNAME>/ovirt-engine/webadmin/?locale=en_US line 9 > injectedScript)
	at Unknown.anonymous(Unknown)

Thanks.
Erkan E

Comment 7 Arik 2022-07-12 12:53:39 UTC
ok, I see that both ImportTemplateFromOvaModel and ImportTemplateFromExportDomainModel inherit ImportVmFromExportDomainModel so this makes sense and it also reproduced on my environment

Comment 8 RHEL Program Management 2022-07-12 12:53:47 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 9 Erkan E 2022-07-15 16:58:35 UTC
Thanks Arik.

Comment 10 Gianluca Cecchi 2022-07-20 09:20:46 UTC
I confirm that I have the same problem in RHV 4.4-SP1, that should be somehow equivalent to oVirt 4.5.x, trying to import a template generated in RHV 4.4.
Can you create a cloned bugzilla for RHV, if not already there?
If it can helps I opened a case (03270063) for my problem and attached log collector to it

Comment 11 Arik 2022-07-20 11:49:30 UTC
(In reply to Gianluca Cecchi from comment #10)
> Can you create a cloned bugzilla for RHV, if not already there?
> If it can helps I opened a case (03270063) for my problem and attached log
> collector to it

Thanks but no need to, this should land in RHV 4.4 SP1 batch 2 even without a clone

Comment 12 Arik 2022-07-20 11:54:23 UTC
Ah oops, you've already opened the case.. then yes, we don't need a clone to get the fix in RHV at this point of the development, but there needs to be a cloned bug that the case would be attached to, for tracking

Comment 13 Qin Yuan 2022-08-06 13:41:00 UTC
Verified with:
ovirt-engine-4.5.2.1-0.1.el8ev.noarch

Steps:
1. Export a template as OVA, also export the template to export domain on UI
2. Import the template from OVA on UI
3. Import the template from export domain on UI

Results:
1. Importing template from OVA on UI succeeded, there was no UI error.
2. Importing template from export domain on UI succeeded, there was no UI error.

Comment 14 Sandro Bonazzola 2022-08-30 08:47:42 UTC
This bugzilla is included in oVirt 4.5.2 release, published on August 10th 2022.
Since the problem described in this bug report should be resolved in oVirt 4.5.2 release, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.


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