Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1477961

Summary: [UI] - Failed to create bond from interfaces that has labeled networks attached
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.NetworkAssignee: Ales Musil <amusil>
Status: CLOSED CURRENTRELEASE QA Contact: Michael Burman <mburman>
Severity: medium Docs Contact:
Priority: low    
Version: 4.2.0CC: bugs, ylavi
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: ---   
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:49:43 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
record flow none

Description Michael Burman 2017-08-03 10:29:41 UTC
Created attachment 1308679 [details]
engine logs

Description of problem:
[UI] - Failed to created bond from interfaces that has labeled networks attached.

If trying to create a bond from interfaces that has labeled networks attached, we failing with UI exception on the creation of the bond:
2017-08-03 13:06:56,876+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-15) [] Permutation name: 301C94023E9B382D73E34D90D2C1CBCA
2017-08-03 13:06:56,907+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-15) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) 
 __gwt$exception: <skipped>: Cannot read property 'Tl' of undefined
        at java.lang.Throwable.fillInStackTrace(Throwable.java:114) [rt.jar:1.8.0_131]
        at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.8.0_131]
        at com.google.web.bindery.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:70) [gwt-servlet.jar:]
        at com.google.gwt.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:25) [gwt-servlet.jar:]
        at com.google.gwt.event.shared.HandlerManager.$fireEvent(HandlerManager.java:117) [gwt-servlet.jar:]
        at com.google.gwt.user.client.ui.Widget.$fireEvent(Widget.java:127) [gwt-servlet.jar:]

And with engine error when trying to approve the operation:
"Cannot setup Networks. Network interface 'ens1f0' cannot be labeled. Label can be provided only to interfaces or to bonds (not to slaves nor vlans)."

Version-Release number of selected component (if applicable):
4.2.0-0.0.master.20170802131956.git268ecf3.el7.centos
Relevant for 4.1.5-0.1.el7 as well.

How reproducible:
100%

Steps to Reproduce:
1. Create vlan network net1 with label label1
2. Create vlan network net2 with label label2
3. Attach labeled net1 to eth2 and labeled net2 to eth3
4. Try to create bond from eth2 and eth3 via the setup networks dialog 

Actual results:
Failed with UI exception and engine error.

Expected results:
Should work as expected. There should be no problem to create bond from 2 interfaces that has labeled networks attached, as long both networks can live together(for example 2 vlan networks).

Comment 1 Michael Burman 2017-08-03 10:30:15 UTC
Created attachment 1308680 [details]
record flow

Comment 2 Michael Burman 2017-08-03 10:31:21 UTC
2017-08-03 13:22:34,152+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-5) [] Permutation name: FEF8147E6E08A91BD61EF99653855432
2017-08-03 13:22:34,153+03 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-5) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : Cannot read property 'Il' of undefined
        at java.lang.Throwable.Throwable(Throwable.java:70) [rt.jar:1.8.0_131]

Comment 3 Michael Burman 2017-08-03 10:44:20 UTC
This happens as well when only one of the slaves has a labeled network attached and the second slave only network attached without label.

Comment 4 Michael Burman 2017-08-28 14:06:58 UTC
Verified on - 4.2.0-0.0.master.20170827084901.git3fdb878.el7.centos

Comment 5 Sandro Bonazzola 2017-12-20 10:49:43 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.