Bug 1373475 - UI error occurs when migrating VM
Summary: UI error occurs when migrating VM
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Frontend.WebAdmin
Version: 4.0.4
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ovirt-4.1.0-alpha
: 4.1.0.2
Assignee: Martin Betak
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-06 11:36 UTC by Lucie Leistnerova
Modified: 2017-02-01 14:37 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-02-01 14:37:40 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)
engine.log (22.86 KB, text/plain)
2016-09-06 11:36 UTC, Lucie Leistnerova
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 63536 0 master MERGED frontend: Fix NPE in SubTabHostVmView 2016-09-08 13:25:45 UTC

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


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