Bug 1730341

Summary: [RFE] Support ovs-port with bonding mode balance-slb
Product: Red Hat Enterprise Linux 8 Reporter: Quique Llorente <ellorent>
Component: nmstateAssignee: Gris Ge <fge>
Status: CLOSED ERRATA QA Contact: Mingyu Shi <mshi>
Severity: high Docs Contact:
Priority: high    
Version: 8.1CC: bperkins, danken, ferferna, jiji, jishi, network-qe, phoracek, sukulkar, till
Target Milestone: rcKeywords: FutureFeature
Target Release: 8.2   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nmstate-0.2.5-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:00:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1695115, 1755139    
Attachments:
Description Flags
ovs bridge configuration script for customer0 none

Description Quique Llorente 2019-07-16 13:51:26 UTC
Created attachment 1591053 [details]
ovs bridge configuration script for customer0

Description of problem:

CNV team needs to configure ovs-bridge with a bonding port for customer0

The steps usin nmcli are the following:

## change these to match your hosts                                                                                   
default_device=em1                                                                                                    
secondary_device=em3                                                                                                  
                                                                                                                      
# make bridge                                                                                                         
nmcli conn add type ovs-bridge conn.interface brcnv                                                                   
nmcli conn add type ovs-port conn.interface port0 master brcnv                                                        
nmcli conn add type ovs-port conn.interface brcnv-port master brcnv                                                   
nmcli conn add type ovs-interface conn.id brcnv-iface conn.interface brcnv master brcnv-port ipv4.method auto         
                                                                                                                      
# make bond                                                                                                           
nmcli conn add type ovs-port conn.interface bond0 master brcnv ovs-port.bond-mode balance-slb                         
nmcli conn add type ethernet conn.interface \$default_device master bond0                                             
nmcli conn add type ethernet conn.interface \$secondary_device master bond0                                         


Version-Release number of selected component (if applicable):

nmsate v0.7.0


How reproducible:

nmstate does not have the implementation of ovs-port so there is no concept of bonding two interfaces into it.


Expected results:


Additional info:

Comment 4 Till Maas 2020-02-18 13:56:15 UTC
Approved upstream: https://github.com/nmstate/nmstate/pull/795

Comment 5 Gris Ge 2020-02-20 02:49:58 UTC
Example of OVS bond:


---
interfaces:
  - name: ovs-br0
    type: ovs-bridge
    state: up
    bridge:
      options:
        stp: false
      port:
        - name: ovs-bond1
          link-aggregation:
            mode: balance-slb
            slaves:
              - name: eth1
              - name: eth2

Comment 9 errata-xmlrpc 2020-04-28 16:00:06 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-2020:1696