Bug 1402401

Summary: Accessing the VMs tab causes an InvocationTargetException
Product: [oVirt] ovirt-engine Reporter: Oved Ourfali <oourfali>
Component: Frontend.WebAdminAssignee: Tomas Jelinek <tjelinek>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.0.6.2CC: ahadas, bugs, dfodor, gklein, mburman, mgoldboi, michal.skrivanek, nsednev, pnovotny, tjelinek, vszocs
Target Milestone: ovirt-4.0.6Keywords: Regression, Triaged
Target Release: 4.0.6.3Flags: rule-engine: ovirt-4.0.z+
rule-engine: blocker+
mgoldboi: planning_ack+
michal.skrivanek: devel_ack+
pstehlik: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The mechanism how the list of data for Vm statistics where cut in case they hit the limit of 40 caused the frontend to fail on an exception. Consequence: If a VM was running for more than 10 minutes, the statistics of this VM have been cut and the result of this cut was not possible to send to frontend. Consequently, accessing the VM tab caused an exception. Fix: Made sure the data structures sent to frontend are always of type usable by the frontend. Result: The user can access the VMs tab regardless of how long the VMs were running.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 07:24:42 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:

Description Oved Ourfali 2016-12-07 13:04:20 UTC
When opening the admin portal, browsing to the VMs main tab, it causes an InvocationTargetException. Pressing close on this dialog opens another dialog with a "null" error. Doing that several times opens the UI, but this reproduces again when you switch to the VMs main tab. The main tab doesn't load at all.

Comment 1 Michal Skrivanek 2016-12-07 13:14:24 UTC
Apparently a regression introduced by an incorrect fix of bug 1401963. Needs a backport from master where it is already fixed by ahadas

Comment 2 Michael Burman 2016-12-07 14:00:54 UTC
This bug is now on master as well 4.1.0-0.2.master.20161206231204.git3921e29.el7

Comment 3 Yaniv Kaul 2016-12-08 06:24:20 UTC
Am I correct to assume this is solved in gwt 2.8?

Comment 4 Michal Skrivanek 2016-12-08 06:52:22 UTC
(In reply to Michael Burman from comment #2)
> This bug is now on master as well
> 4.1.0-0.2.master.20161206231204.git3921e29.el7

No. It is 4.0.6 only

Comment 5 Michal Skrivanek 2016-12-08 08:36:39 UTC
*** Bug 1401137 has been marked as a duplicate of this bug. ***

Comment 6 Vojtech Szocs 2016-12-08 17:43:30 UTC
(In reply to Yaniv Kaul from comment #3)
> Am I correct to assume this is solved in gwt 2.8?

The problem was in oVirt (backend) code, trying to send GWT RPC incompatible object to the client, as part of query return value.

The problem should be fixed now in master/4.1 and 4.0.6 too.

I wrote a UI infra patch to avoid this kind of problem in future: https://gerrit.ovirt.org/#/c/67960/

Comment 7 Lucie Leistnerova 2016-12-11 23:13:13 UTC
no error, VMs are running without problems

verified in ovirt-engine-4.0.6.3-0.1.el7ev.noarch

Comment 8 Nikolai Sednev 2016-12-12 10:05:09 UTC
Works for me too on host:
vdsm-4.18.18-4.git198e48d.el7ev.x86_64
ovirt-engine-sdk-python-3.6.9.1-1.el7ev.noarch
ovirt-imageio-daemon-0.4.0-0.el7ev.noarch
rhev-release-4.0.6-5-001.noarch
sanlock-3.4.0-1.el7.x86_64
ovirt-vmconsole-host-1.0.4-1.el7ev.noarch
qemu-kvm-rhev-2.6.0-28.el7_3.2.x86_64
ovirt-hosted-engine-ha-2.0.6-1.el7ev.noarch
rhevm-appliance-20161130.0-1.el7ev.noarch
ovirt-setup-lib-1.0.2-1.el7ev.noarch
ovirt-imageio-common-0.3.0-0.el7ev.noarch
libvirt-client-2.0.0-10.el7_3.2.x86_64
ovirt-vmconsole-1.0.4-1.el7ev.noarch
mom-0.5.8-1.el7ev.noarch
ovirt-hosted-engine-setup-2.0.4.1-2.el7ev.noarch
ovirt-host-deploy-1.5.3-1.el7ev.noarch
Linux version 3.10.0-514.2.2.el7.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Nov 16 13:15:13 EST 2016
Linux 3.10.0-514.2.2.el7.x86_64 #1 SMP Wed Nov 16 13:15:13 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 7.3 (Maipo)

On engine:
rhevm-dependencies-4.0.0-1.el7ev.noarch
rhevm-spice-client-x86-msi-4.0-3.el7ev.noarch
rhev-release-4.0.6-5-001.noarch
rhevm-spice-client-x64-msi-4.0-3.el7ev.noarch
rhevm-doc-4.0.6-1.el7ev.noarch
rhevm-4.0.6.3-0.1.el7ev.noarch
rhev-guest-tools-iso-4.0-6.el7ev.noarch
rhevm-branding-rhev-4.0.0-6.el7ev.noarch
rhevm-setup-plugins-4.0.0.3-1.el7ev.noarch
rhevm-guest-agent-common-1.0.12-3.el7ev.noarch
Linux version 3.10.0-514.el7.x86_64 (mockbuild.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Oct 19 11:24:13 EDT 2016
Linux 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 7.3 (Maipo)

Comment 9 Oved Ourfali 2016-12-21 13:07:27 UTC
*** Bug 1404807 has been marked as a duplicate of this bug. ***