[ovs-discuss] Configure bond with Open vSwitch: bond ports are disabled, may_enable: false

Ilya Maximets i.maximets at ovn.org
Mon Jul 12 09:22:25 UTC 2021


> Hello,
> 
> I have configured a bond + bridge + internal ports on Debian 10 (using
> /etc/network/interfaces).
> 
> $ sudo ovs-vsctl
> show                                                                
> [sudo] Passwort für locadmin:
> 6dd082a8-a004-4fad-b3c5-7521d34d9f54
>     Bridge vmbr0            
>         Port vlan90                  
>             tag: 90                     
>             Interface
> vlan90                                                        
>                 type:
> internal                                                      
>         Port
> vmbr0                                                                  
>             Interface vmbr0          
>                 type: internal         
>         Port bond0             
>             Interface eno1
>             Interface enp4s0f3
>         Port vlan30    
>             tag: 30                      
>             Interface vlan30    
>                 type:
> internal                                                      
>     ovs_version: "2.15.0"
> 
> However, the bond ports are disabled:
> $ sudo ovs-appctl bond/show bond0
> ---- bond0 ----
> bond_mode: balance-tcp
> bond may use recirculation: yes, Recirc-ID : 1
> bond-hash-basis: 0
> lb_output action: disabled, bond-id: -1
> updelay: 0 ms
> downdelay: 0 ms
> next rebalance: 2584 ms
> lacp_status: configured
> lacp_fallback_ab: false
> active-backup primary: <none>
> active member mac: 00:00:00:00:00:00(none)
> 
> member eno1: disabled
>   may_enable: false
> 
> member enp4s0f3: disabled
>   may_enable: false
> 
> $ sudo ovs-appctl lacp/show bond0
> ---- bond0 ----
>   status: active
>   sys_id: 4c:52:62:bc:97:7a
>   sys_priority: 65534
>   aggregation key: 1
>   lacp_time: fast
> 
> member: eno1: defaulted detached
>   port_id: 1
>   port_priority: 65535
>   may_enable: false
> 
>   actor sys_id: 4c:52:62:bc:97:7a
>   actor sys_priority: 65534
>   actor port_id: 1
>   actor port_priority: 65535
>   actor key: 1
>   actor state: activity timeout aggregation collecting distributing
> defaulted
> 
>   partner sys_id: 00:00:00:00:00:00
>   partner sys_priority: 0
>   partner port_id: 0
>   partner port_priority: 0
>   partner key: 0
>   partner state:
> 
> member: enp4s0f3: defaulted detached
>   port_id: 2
>   port_priority: 65535
>   may_enable: false
> 
>   actor sys_id: 4c:52:62:bc:97:7a
>   actor sys_priority: 65534
>   actor port_id: 2
>   actor port_priority: 65535
>   actor key: 1
>   actor state: activity timeout aggregation collecting distributing
> defaulted
> 
>   partner sys_id: 00:00:00:00:00:00
>   partner sys_priority: 0
>   partner port_id: 0
>   partner port_priority: 0
>   partner key: 0
>   partner state:
> 
> I can see that ports eno1 and enp4s0f3 have an uplink, both in OS
> (ethtool) and on the switch (D-Link DGS-1100).
> 
> Can you please advise how to troubleshoot this issue?

All bond members are in 'defaulted' state, meaning the lacp negotiation
did not happen/failed and partner ports are unknown (you can see that the
partner related information is empty in the output above).

I would say that, most likely, LACP is not enabled/configured for these
ports on the HW switch.

You may also look at ovs-vswitchd.log, maybe there are some relevant
messages there.

Best regards, Ilya Maximets.


More information about the discuss mailing list