Bug 1659960 - [downstream clone - 4.2.8] After upgrade to 4.2, admin portal host interface view does not load
Summary: [downstream clone - 4.2.8] After upgrade to 4.2, admin portal host interface ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.2.7
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.2.8
: ---
Assignee: Ales Musil
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On: 1655375
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-17 09:35 UTC by RHV bug bot
Modified: 2022-03-13 16:50 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.2.8.2
Doc Type: Bug Fix
Doc Text:
This release ensures that during Red Hat Virtualization Manager upgrades from 4.1 to 4.2.8, the network interfaces display properly on the 4.1 host with the bond defined.
Clone Of: 1655375
Environment:
Last Closed: 2019-01-22 12:44:51 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1464055 0 high CLOSED bond has no speed set in active_migration_network_interfaces 2021-06-10 12:33:13 UTC
Red Hat Issue Tracker RHV-45240 0 None None None 2022-03-13 16:50:32 UTC
Red Hat Knowledge Base (Solution) 3736471 0 None None None 2018-12-17 09:36:11 UTC
Red Hat Product Errata RHBA-2019:0121 0 None None None 2019-01-22 12:44:57 UTC
oVirt gerrit 95999 0 master MERGED webadmin: Fix NPE when NIC speed is null 2018-12-17 09:36:11 UTC
oVirt gerrit 96279 0 ovirt-engine-4.2 MERGED webadmin: Fix NPE when NIC speed is null 2018-12-18 12:36:32 UTC

Description RHV bug bot 2018-12-17 09:35:24 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1655375 +++
======================================================================

Description of problem:

After upgrading to 4.2, the admin portal host interface view (Compute -> Hosts -> Network Interfaces) is empty, and the following obfuscated exception is thrown several times:

webadmin-0.js:formatted:176788 Mon Dec 03 11:46:02 GMT+1000 2018
SEVERE: Uncaught exception
com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'a' of null
        at Unknown.ZCy(webadmin-66.js)
        at Unknown.fDy(webadmin-66.js)
        at Unknown.Pco(webadmin-147.js)
        at Unknown.eDy(webadmin-66.js)
        at Unknown.new sDy(webadmin-66.js)
        at Unknown.M_x(webadmin-66.js)
        at Unknown.P_x(webadmin-66.js)
        at Unknown.uco(webadmin-147.js)
        at Unknown.oco(webadmin-147.js)
        at Unknown.Eco(webadmin-147.js)
        at Unknown.eut(webadmin-0.js)
        at Unknown.tsr(webadmin-147.js)
        at Unknown.Asr(webadmin-147.js)
        at Unknown.ksr(webadmin-147.js)
        at Unknown.Ssr(webadmin-147.js)
        at Unknown.JMp(webadmin-0.js)
        at Unknown.MMp(webadmin-0.js)
        at Unknown.jPp(webadmin-0.js)
        at Unknown.mPp(webadmin-0.js)
        at Unknown.EOp(webadmin-0.js)
        at Unknown.HOp(webadmin-0.js)
        at Unknown.T3e(webadmin-0.js)
        at Unknown.Z0(webadmin-0.js)
        at Unknown.m1(webadmin-0.js)
        at Unknown.eval(webadmin-0.js)
        at Unknown.Pu(webadmin-0.js)
        at Unknown.Su(webadmin-0.js)
        at Unknown.eval(webadmin-0.js)

Version-Release number of selected component (if applicable):
rhvm-4.2.7.5-0.1.el7ev.noarch
ovirt-engine-webadmin-portal-4.2.7.5-0.1.el7ev.noarch
vdsm-4.19.31-1.el7ev

How reproducible:
With the provided database

Steps to Reproduce:
1. Restore provided database on 4.2.7-5.

Actual results:
Host network interface view fails to load with exception

Expected results:
Host network interface view loading

(Originally by Germano Veit Michel)

Comment 7 RHV bug bot 2018-12-17 09:35:34 UTC
It's a code problem, but in the meantime, is there anything unusual about the nics? A field null that usually isn't?



2018-12-03 11:37:46,114+10 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-20) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'a' of null
	at org.ovirt.engine.ui.webadmin.widget.host.HostNetworkInterfaceListViewItem.$createBodyPanel(HostNetworkInterfaceListViewItem.java:124)
	at org.ovirt.engine.ui.webadmin.widget.host.HostNetworkInterfaceListViewItem.createBodyPanel(HostNetworkInterfaceListViewItem.java:124)
	at org.ovirt.engine.ui.common.widget.listgroup.PatternflyListViewItem.PatternflyListViewItem(PatternflyListViewItem.java:77)
	at org.ovirt.engine.ui.webadmin.widget.host.HostNetworkInterfaceListViewItem.HostNetworkInterfaceListViewItem(HostNetworkInterfaceListViewItem.java:76)
	at Unknown.new sDy(webadmin-66.js)
	at org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostInterfaceView.$createListViewItem(SubTabHostInterfaceView.java:70)
	at org.ovirt.engine.ui.webadmin.section.main.view.tab.host.SubTabHostInterfaceView.createListViewItem(SubTabHostInterfaceView.java:70)
	at org.ovirt.engine.ui.common.widget.listgroup.PatternflyListView.$updateInfoPanel(PatternflyListView.java:137)
	at org.ovirt.engine.ui.common.widget.listgroup.PatternflyListView.$lambda$1(PatternflyListView.java:63)
	at org.ovirt.engine.ui.common.widget.listgroup.PatternflyListView$lambda$1$Type.eventRaised(PatternflyListView.java:63)
	at org.ovirt.engine.ui.uicompat.Event.$raise(Event.java:99)
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceListModel.$setItems(HostInterfaceListModel.java:94)
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceListModel.$updateItems(HostInterfaceListModel.java:188)
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceListModel.$lambda$1(HostInterfaceListModel.java:182)
	at org.ovirt.engine.ui.uicommonweb.models.hosts.HostInterfaceListModel$lambda$1$Type.onSuccess(HostInterfaceListModel.java:182)
	at org.ovirt.engine.ui.frontend.Frontend$1.$onSuccess(Frontend.java:227) [frontend.jar:]

(Originally by Greg Sheremeta)

Comment 8 RHV bug bot 2018-12-17 09:35:36 UTC
@Ales, this may be a bug or limitation in PatternflyListView. The results of this search are telling:

https://www.google.com/search?q=inurl%3Abugzilla.redhat.com+PatternflyListView

(Originally by Greg Sheremeta)

Comment 16 RHV bug bot 2018-12-17 09:35:56 UTC
OK, I have a clue on why this came up:

1) We know 4.2 admin portal bombs out if speed is null
2) 4.1 vdsm does not report the speed for bond/vlan devices in getCaps

Apparently it was added in 4.2 vdsm via this patch?    
net: Report bond (virtual) speed through net caps

I can reproduce the problem by using:
* vdsm-4.19.31
* ovirt-engine-4.2.7
* configure a bond using 2 NICs.

No matter how many Refresh Capabilities I do, the speed for bond devices is always NULL and the UI throws the exact same exception.

vdsm-4.20.44:

    "bondings": {
        "bond0": {
            "ipv6autoconf": true, 
            "addr": "192.168.101.3", 
            "speed": 0,                   <---------------
            "dhcpv6": false, 
            "ipv6addrs": [], 
            "netmask": "255.255.255.0", 
            "active_slave": "eth1", 
            "mtu": "1500", 
            "dhcpv4": true, 
            "switch": "legacy", 
            "ipv4defaultroute": false, 
            "ipv4addrs": [
                "192.168.101.3/24"
            ], 
            "hwaddr": "52:54:00:16:c1:03", 
            "slaves": [
                "eth2", 
                "eth1"
            ], 
            "ipv6gateway": "::", 
            "gateway": "", 
            "opts": {
                "miimon": "100", 
                "mode": "1"
            }
        }
    }, 


vdsm-4.19.31:

        "bond0": {
            "ipv6autoconf": true, 
            "addr": "192.168.101.3", 
            "ipv4defaultroute": false,    <----- no speed here
            "ipv6addrs": [], 
            "switch": "legacy", 
            "active_slave": "eth1", 
            "mtu": "1500", 
            "dhcpv4": true, 
            "netmask": "255.255.255.0", 
            "dhcpv6": false, 
            "ipv4addrs": [
                "192.168.101.3/24"
            ], 
            "hwaddr": "52:54:00:16:c1:03", 
            "slaves": [
                "eth1", 
                "eth2"
            ], 
            "ipv6gateway": "::", 
            "gateway": "", 
            "opts": {
                "miimon": "100", 
                "mode": "1"
            }
        }
    },

(Originally by Germano Veit Michel)

Comment 19 RHV bug bot 2018-12-17 09:36:00 UTC
This affects anybody upgrading Engine to 4.2 before the hosts, asking for exception.

(Originally by danken)

Comment 22 RHV bug bot 2018-12-17 09:36:05 UTC
Yes, I think that this bug needs to be cloned to 4.2.z and backported.

I hope that Dominik can do both tomorrow if Martin acks it.

(Originally by danken)

Comment 23 Lucie Leistnerova 2019-01-16 13:34:26 UTC
After engine upgrade 4.1 to 4.2.8, network interfaces shown properly on 4.1 host with bond defined.

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

When you find other network settings that breaks the view, feel free to reopen this BZ.

Comment 25 errata-xmlrpc 2019-01-22 12:44:51 UTC
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, 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/RHBA-2019:0121


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