Bug 1373475

Summary: UI error occurs when migrating VM
Product: [oVirt] ovirt-engine Reporter: Lucie Leistnerova <lleistne>
Component: Frontend.WebAdminAssignee: Martin Betak <mbetak>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: unspecified Docs Contact:
Priority: low    
Version: 4.0.4CC: bugs, lleistne, tjelinek
Target Milestone: ovirt-4.1.0-alphaFlags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
pstehlik: testing_ack+
Target Release: 4.1.0.2   
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: 2017-02-01 14:37:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log none

Description Lucie Leistnerova 2016-09-06 11:36:19 UTC
Created attachment 1198189 [details]
engine.log

Description of problem:
after migrating VM from Hosts list to other host with no running VM and clicking on Virtual machines, UI error occurs

Version-Release number of selected component (if applicable):
ovirt-engine-webadmin-portal-4.0.4-0.1.el7ev.noarch

How reproducible: on slower engine most of the time, depends on how quick you click on Virtual machines


Steps to Reproduce:
1. go to Hosts, select some host with running VM
2. go to list of its running VM
3. migrate VM from this list to host that has no running VM
4. right after closing the window for migrating, click to Virtual machines in the main menu

Actual results: Uncaught exception occurred. Please try reloading the page. Details: (TypeError) __gwt$exception: <skipped>: c is null
Please have your administrator check the UI logs


Expected results: no error occurs


Additional info:
it also happens when host is put into maintenance
engine log attached

ui.log:

2016-09-06 10:34:33,995 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-5) [] Permutation name: 18679C8869553B5A8C3071F33CFC5678
2016-09-06 10:34:33,997 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-5) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError)
 __gwt$exception: <skipped>: c is null
        at Unknown.Bdx(Unknown Source)
        at Unknown.Ddx(Unknown Source)
        at Unknown.lEl(Unknown Source)
        at Unknown.oEl(Unknown Source)
        at Unknown.nEl(Unknown Source)
        at Unknown.WWe(Unknown Source)
        at Unknown.ZRe(Unknown Source)
        at Unknown.tXe(Unknown Source)
        at Unknown.TRe(Unknown Source)
        at Unknown.vQe(Unknown Source)
        at Unknown.jRe(Unknown Source)
        at Unknown.oSe(Unknown Source)
        at Unknown.OXe(Unknown Source)
        at Unknown.lYe(Unknown Source)
        at Unknown.Ay(Unknown Source)
        at Unknown.qy(Unknown Source)
        at Unknown.Ux(Unknown Source)
        at Unknown.Tx(Unknown Source)
        at Unknown.Sx/<(Unknown Source)
        at Unknown.anonymous(Unknown Source)

Comment 1 Yaniv Kaul 2016-09-07 06:27:22 UTC
Severity is missing.
please add debuginfo and get a proper stack.

Comment 2 Lucie Leistnerova 2016-09-07 07:30:39 UTC
I'm sorry, here it is

2016-09-07 06:32:37,429 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-15) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError)
 __gwt$exception: <skipped>: c is null
        at org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostVmView$8.$getRawValue(SubTabHostVmView.java:129)
        at org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostVmView$8.getRawValue(SubTabHostVmView.java:129)
        at org.ovirt.engine.ui.common.widget.table.column.AbstractRenderedTextColumn.$getValue(AbstractRenderedTextColumn.java:24)
        at org.ovirt.engine.ui.common.widget.table.column.AbstractRenderedTextColumn.getValue(AbstractRenderedTextColumn.java:24)
        at org.ovirt.engine.ui.common.widget.table.column.AbstractRenderedTextColumn.getValue(AbstractRenderedTextColumn.java:24)
        at com.google.gwt.user.cellview.client.Column.render(Column.java:164) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.AbstractCellTableBuilder.$renderCell(AbstractCellTableBuilder.java:187) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.DefaultCellTableBuilder.$buildRowImpl(DefaultCellTableBuilder.java:62) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.AbstractCellTableBuilder.$buildRow(AbstractCellTableBuilder.java:85) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.AbstractCellTable.$buildRowValues(AbstractCellTable.java:2346) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.AbstractCellTable.replaceAllChildren(AbstractCellTable.java:2145) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.AbstractHasData$View.replaceAllChildren(AbstractHasData.java:237) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.HasDataPresenter.$resolvePendingState(HasDataPresenter.java:1062) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.HasDataPresenter$2.execute(HasDataPresenter.java:981) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:164) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.SchedulerImpl.$flushFinallyCommands(SchedulerImpl.java:270) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.exit(Impl.java:378) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:335) [gwt-servlet.jar:]
        at Unknown.Sx/<(Unknown Source)
        at Unknown.anonymous(Unknown Source)

Comment 3 Tomas Jelinek 2016-09-08 11:53:05 UTC
ok, simulated. 
It is a race and you need to be quite quick to make it. The exception is harmless, but nonetheless it deserves a null check on FE.
Targeting to 4.1

Comment 4 Yaniv Kaul 2016-09-19 12:33:17 UTC
(In reply to Tomas Jelinek from comment #3)
> ok, simulated. 
> It is a race and you need to be quite quick to make it. The exception is
> harmless, but nonetheless it deserves a null check on FE.
> Targeting to 4.1

It's not very rare - I see it on RHEV.TLV (with 4.0.4).

Comment 5 Sandro Bonazzola 2016-12-12 13:56:41 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 6 Lucie Leistnerova 2016-12-16 14:10:37 UTC
I tried it several times on engine with less than 4GB memory and 1 CPU and no UI error appears. Even when I slowed it down by creating VMs in pool.

verified in ovirt-engine-webadmin-portal-4.1.0-0.2.master.20161215195836.gite14ff4a.el7.centos.noarch