+++ This bug was initially created as a clone of Bug #2104597 +++ 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) --- Additional comment from Arik on 2022-07-07 06:47:42 UTC --- Note that export domains are deprecated and are not being tested anymore, please use OVAs instead --- Additional comment from RHEL Program Management on 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. --- Additional comment from Erkan E on 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. --- Additional comment from Erkan E on 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" --- Additional comment from Arik on 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 --- Additional comment from Erkan E on 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 --- Additional comment from Arik on 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 --- Additional comment from RHEL Program Management on 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. --- Additional comment from Erkan E on 2022-07-15 16:58:35 UTC --- Thanks Arik. --- Additional comment from Gianluca Cecchi on 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 --- Additional comment from Arik on 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 --- Additional comment from Arik on 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
Lucia, please provide doc text and move to MODIFIED.
The problem is exactly the same when importing from OVA template. Do you have a different bug id for that or would it hep changing the subject of this one? ALso, I think The Red Hat Knowledge Base (Solution) 6969563 should have the subject modified or a new solution number created for the OVA scenario
The problem was caused by the UI bug and affected both, import from the export domain and from OVA. I've updated the BZ's title to reflect that.
Verified: ovirt-engine-4.5.2.2-0.1.el8ev vdsm-4.50.2.2-1.el8ev.x86_64 libvirt-8.0.0-5.3.module+el8.6.0+16162+08e7975b.x86_64 qemu-kvm-6.2.0-11.module+el8.6.0+15668+464a1f31.2.x86_64 Verification scenario: 1. Export template Verify template exported successfully 2. Import the template exported Verify template imported successfully 3. Create VM from the imported template. Verify VM created successfully. 4. Run VM. Verify VM is running and functional.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: RHV Manager (ovirt-engine) [ovirt-4.5.2] bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:6393