The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 1915958 - ovn-nbctl lr-route-list does not show the route is type ECMP/BFD
Summary: ovn-nbctl lr-route-list does not show the route is type ECMP/BFD
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: OVN
Version: RHEL 8.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: lorenzo bianconi
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-13 19:53 UTC by Tim Rozet
Modified: 2021-03-15 14:36 UTC (History)
2 users (show)

Fixed In Version: ovn2.13-20.12.0-11.el7fdn
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-15 14:36:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:0836 0 None None None 2021-03-15 14:36:23 UTC

Description Tim Rozet 2021-01-13 19:53:06 UTC
Description of problem:
When doing lr-route-list on a router, the output does not indicate which routes are ecmp or if bfd:

[root@ovn-control-plane ~]# ovn-nbctl lr-route-list GR_ovn-worker2
IPv4 Routes
               10.244.2.3              172.18.0.233 src-ip
               10.244.2.3               172.18.0.99 src-ip
               10.244.2.4              172.18.0.233 src-ip
               10.244.2.4               172.18.0.99 src-ip
            10.244.0.0/16                100.64.0.1 dst-ip
                0.0.0.0/0                172.18.0.1 dst-ip rtoe-GR_ovn-worker2

IPv6 Routes
         fd00:10:244:3::3   fc00:f853:ccd:e793::233 src-ip
         fd00:10:244:3::3   fc00:f853:ccd:e793::266 src-ip
         fd00:10:244:3::4   fc00:f853:ccd:e793::233 src-ip
         fd00:10:244:3::4   fc00:f853:ccd:e793::266 src-ip
         fd00:10:244::/48                   fd98::1 dst-ip
                     ::/0     fc00:f853:ccd:e793::1 dst-ip rtoe-GR_ovn-worker2


However we can see in the route options it has ecmp:
_uuid               : 28b143dd-bc44-4b37-a33f-964a34e80edf
external_ids        : {}
ip_prefix           : "fd00:10:244:3::4"
nexthop             : "fc00:f853:ccd:e793::233"
options             : {ecmp_symmetric_reply="true"}
output_port         : []
policy              : src-ip

In typical router appliances the output of the static route table will show if the route has ECMP/BFD enabled on it. It would be useful to add that to the lr-route-list output as additional columns. Also would be helpful to show if the route is just "ecmp" or if it has "ecmp-symmetric-reply".

Comment 4 Jianlin Shi 2021-02-09 07:59:53 UTC
Verified on ovn2.13-20.12.0-15:

systemctl start ovn-northd                                                                            
ovn-nbctl set-connection ptcp:6641                                                                    
ovn-sbctl set-connection ptcp:6642                                                                    
                                                                                                      
systemctl start openvswitch                                                                           
ovs-vsctl set open . external_ids:system-id=hv0 external_ids:ovn-remote=tcp:1.1.173.25:6642 external_ids:ovn-encap-type=geneve external_ids:ovn-encap-ip=1.1.173.25
systemctl start ovn-controller                                                                        
                                                                                                      
ovn-nbctl lr-add lr1                                                                                  
ovn-nbctl lrp-add lr1 lr1p1 00:00:00:01:0f:01 1.1.1.1/24 1111::1/64                                   
ovn-nbctl lr-route-add lr1 2.1.1.0/24 1.1.1.2  lr1p1                                                  
                                                                                                      
bfd_uuid=$(ovn-nbctl create bfd logical_port=lr1p1 dst_ip=1.1.1.3 min_tx=250 min_rx=250 detect_mult=10)    
ovn-nbctl --bfd=$bfd_uuid lr-route-add lr1 3.1.1.0/24 1.1.1.3 lr1p1                                   
ovn-nbctl --ecmp lr-route-add lr1 4.1.1.0/24 1.1.1.4 lr1p1                                            
ovn-nbctl --ecmp lr-route-add lr1 4.1.1.0/24 1.1.1.5 lr1p1                                            
ovn-nbctl --ecmp-symmetric-reply lr-route-add lr1 5.1.1.0/24 1.1.1.5 lr1p1                            
ovn-nbctl --ecmp-symmetric-reply lr-route-add lr1 5.1.1.0/24 1.1.1.4 lr1p1                            
                                                                                                      
ovn-nbctl lr-route-list lr1

[root@wsfd-advnetlab21 bz1918997]# rpm -qa | grep -E "openvswitch2.13|ovn2.13"                        
ovn2.13-central-20.12.0-15.el8fdp.x86_64                                                              
openvswitch2.13-2.13.0-93.el8fdp.x86_64                                                               
ovn2.13-20.12.0-15.el8fdp.x86_64                                                                      
ovn2.13-host-20.12.0-15.el8fdp.x86_64

+ ovn-nbctl --bfd=3f957ee0-0dae-4e80-b829-af29ffc45925 lr-route-add lr1 3.1.1.0/24 1.1.1.3 lr1p1    
+ ovn-nbctl --ecmp lr-route-add lr1 4.1.1.0/24 1.1.1.4 lr1p1                                          
+ ovn-nbctl --ecmp lr-route-add lr1 4.1.1.0/24 1.1.1.5 lr1p1                                          
+ ovn-nbctl --ecmp-symmetric-reply lr-route-add lr1 5.1.1.0/24 1.1.1.5 lr1p1                          
+ ovn-nbctl --ecmp-symmetric-reply lr-route-add lr1 5.1.1.0/24 1.1.1.4 lr1p1                          
+ ovn-nbctl lr-route-list lr1                                                                         
IPv4 Routes                                                                                           
               2.1.1.0/24                   1.1.1.2 dst-ip lr1p1                                      
               3.1.1.0/24                   1.1.1.3 dst-ip lr1p1 bfd  

<=== bfd
                                
               4.1.1.0/24                   1.1.1.4 dst-ip lr1p1 ecmp                                 
               4.1.1.0/24                   1.1.1.5 dst-ip lr1p1 ecmp   

<=== ecmp
                              
               5.1.1.0/24                   1.1.1.4 dst-ip lr1p1 ecmp ecmp-symmetric-reply            
               5.1.1.0/24                   1.1.1.5 dst-ip lr1p1 ecmp ecmp-symmetric-reply

<==== ecmp-symmetric-reply

Comment 6 errata-xmlrpc 2021-03-15 14:36:02 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 (ovn2.13 bug fix and enhancement update), 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-2021:0836


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