Bug 1508513

Summary: Can't open setup networks dialog if there is an 'unmanaged' network on the host
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.NetworkAssignee: Ales Musil <amusil>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Burman <mburman>
Severity: high Docs Contact:
Priority: medium    
Version: 4.2.0CC: bugs
Target Milestone: ovirt-4.2.0Keywords: Automation, Regression
Target Release: ---Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 10:45:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine logs none

Description Michael Burman 2017-11-01 15:23:13 UTC
Created attachment 1346586 [details]
engine logs

Description of problem:
Can't open setup networks dialog if there is an 'unmanaged' network on the host.

'Unmanaged' network left on the host cause an UI exception and the setup networks dialog can't be opened.

2017-11-01 17:17:46,054+02 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-10) [] Permutation name: 071AC75B5CB16220C22FE0DC88A8531A
2017-11-01 17:17:46,089+02 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-10) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'd' of null
        at org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.ItemInfoPopup.$showNetwork(ItemInfoPopup.java:106)
        at org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.ItemInfoPopup.$getTooltipContent(ItemInfoPopup.java:83)
        at org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkItemPanel.$initTooltip(NetworkItemPanel.java:143)
        at org.ovirt.engine.ui.webadmin.section.main.view.popup.host.panels.NetworkPanel.initTooltip(NetworkPanel.java:169)


Version-Release number of selected component (if applicable):
4.2.0-0.0.master.20171031132420.git7d5e5f3.el7.centos

How reproducible:
100%

Steps to Reproduce:
1. Option 1 - Attach network to host and remove from DC while still attahced to the host
2. Option 2 - Add host with a bridge that isn't exist in the cluster

Actual results:
'Unmanaged' network on host caused UI exception and setup networks dialog can't be opened. 

Expected results:
Must work as expected

To WA it, remove the network via Rest or re-create the same network again in the DC.

Comment 1 Red Hat Bugzilla Rules Engine 2017-11-01 16:16:43 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 2 Michael Burman 2017-11-09 09:48:24 UTC
Verified on - 4.2.0-0.0.master.20171108151837.gita7de53e.el7.centos

Comment 3 Sandro Bonazzola 2017-12-20 10:45:24 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.