Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1390000

Summary: virt-v2v: VMs cannot be imported from external providers due to webadmin uncaught exception.
Product: [oVirt] ovirt-engine Reporter: Nisim Simsolo <nsimsolo>
Component: Frontend.WebAdminAssignee: bugs <bugs>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: urgent Docs Contact:
Priority: high    
Version: 4.0.5CC: bugs, gshereme, michal.skrivanek, nsimsolo, oourfali, tjelinek, vszocs
Target Milestone: ovirt-4.0.5Flags: michal.skrivanek: ovirt-4.0.z?
michal.skrivanek: blocker?
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-31 11:32:40 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:
Bug Depends On:    
Bug Blocks: 1377271    
Attachments:
Description Flags
ui.log
none
engine.log
none
vdsm.log none

Description Nisim Simsolo 2016-10-30 15:10:20 UTC
Description of problem:
When moving to second import dialog, an uncaught exception occurs and import dialog is terminated. In such case, VMs cannot be imported from any external provider.

Version-Release number of selected component (if applicable):
ovirt-engine-4.0.5.4-0.1.el7ev
qemu-kvm-rhev-2.6.0-27.el7.x86_64
vdsm-4.18.15.2-1.el7ev.x86_64
libvirt-client-2.0.0-10.el7.x86_64

How reproducible:
100%, verified also on different setups.
Relevant for VMware, XEN and KVM providers.

Steps to Reproduce:
1. Browse webadmin -> virtual machines tab -> import
2. Enter external provider details, click load, select VM to import
3. Click next

Actual results:
Import dialog terminated. 
Inspect element console shows that an uncaught exception occurred:
2016-10-30 17:04:49,624 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-10) [] Permutation name: 2D3D9270307C9078085A70A0F003D07C
2016-10-30 17:04:49,624 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-10) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) 
 __gwt$exception: <skipped>: Cannot read property 'Tc' of undefined

Expected results:
Import dialog should not be terminated.

Additional info:
ui.log (with webadmin-portal-debuginfo), engine.log and vdsm.log attached.
issue occurred at: 2016-10-30 17:04:49,624

Comment 1 Nisim Simsolo 2016-10-30 15:13:57 UTC
Created attachment 1215567 [details]
ui.log

Comment 2 Nisim Simsolo 2016-10-30 15:15:19 UTC
Created attachment 1215568 [details]
engine.log

Comment 3 Nisim Simsolo 2016-10-30 15:17:07 UTC
Created attachment 1215569 [details]
vdsm.log

Comment 4 Michal Skrivanek 2016-10-31 06:18:51 UTC
Possibly a duplicate of bug 1389998

Comment 5 Yaniv Kaul 2016-10-31 06:24:00 UTC
Copy-paste of full stack (so in the future it can be searched in Bugzilla):
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) 
 __gwt$exception: <skipped>: Cannot read property 'Tc' of undefined
	at org.ovirt.engine.ui.common.widget.AbstractUiCommandButton.$cleanup(AbstractUiCommandButton.java:108)
	at org.ovirt.engine.ui.webadmin.section.main.view.popup.ImportVmsPopupView_DriverImpl.$cleanup(ImportVmsPopupView_DriverImpl.java:107)
	at org.ovirt.engine.ui.webadmin.section.main.view.popup.ImportVmsPopupView.cleanup(ImportVmsPopupView.java:484)
	at org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget.$hideAndUnbind(AbstractModelBoundPopupPresenterWidget.java:272)
	at org.ovirt.engine.ui.common.uicommon.model.ModelBoundPopupHandler.$handleWindowModelChange(ModelBoundPopupHandler.java:80)
	at org.ovirt.engine.ui.common.uicommon.model.ModelBoundPopupHandler$1.eventRaised(ModelBoundPopupHandler.java:61)
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:114)
	at org.ovirt.engine.ui.uicommonweb.models.Model.$onPropertyChanged(Model.java:470)
	at org.ovirt.engine.ui.uicommonweb.models.Model.onPropertyChanged(Model.java:470)
	at org.ovirt.engine.ui.uicommonweb.models.Model.$setWindow(Model.java:92)
	at org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.$onConfigureVmsToImport(VmListModel.java:2307)
	at org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.$executeCommand(VmListModel.java:2085)
	at org.ovirt.engine.ui.uicommonweb.models.vms.VmListModel.executeCommand(VmListModel.java:2085)
	at org.ovirt.engine.ui.uicommonweb.UICommand.$execute(UICommand.java:163)
	at org.ovirt.engine.ui.common.presenter.AbstractModelBoundPopupPresenterWidget$6.onClick(AbstractModelBoundPopupPresenterWidget.java:334)
	at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:55) [gwt-servlet.jar:]
	at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:76) [gwt-servlet.jar:]
	at com.google.web.bindery.event.shared.SimpleEventBus.$doFire(SimpleEventBus.java:173) [gwt-servlet.jar:]
	... 21 more

Comment 6 Tomas Jelinek 2016-10-31 08:01:56 UTC
@Greg: it looks a lot like dup of 1389998. While fixing it, could you please verify it resolves also this?

Comment 7 Tomas Jelinek 2016-10-31 08:20:20 UTC
Not sure if duplicate or just caused by the same as 1389998 - moving to UX for investigation.

Comment 8 Vojtech Szocs 2016-10-31 11:27:31 UTC
>  at org.ovirt.engine.ui.common.widget.AbstractUiCommandButton.$cleanup(AbstractUiCommandButton.java:108)
>  at org.ovirt.engine.ui.webadmin.section.main.view.popup.ImportVmsPopupView_DriverImpl.$cleanup(ImportVmsPopupView_DriverImpl.java:107)

NPE due to dialog object cleanup introduced recently, I'll investigate.

Comment 9 Vojtech Szocs 2016-10-31 11:30:25 UTC
This is the same issue as bug 1389998

Comment 10 Oved Ourfali 2016-10-31 11:32:40 UTC

*** This bug has been marked as a duplicate of bug 1389998 ***