Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.

Bug 1915958

Summary: ovn-nbctl lr-route-list does not show the route is type ECMP/BFD
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Tim Rozet <trozet>
Component: OVNAssignee: lorenzo bianconi <lorenzo.bianconi>
Status: CLOSED ERRATA QA Contact: Jianlin Shi <jishi>
Severity: low Docs Contact:
Priority: unspecified    
Version: RHEL 8.0CC: ctrautma, lorenzo.bianconi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn2.13-20.12.0-11.el7fdn Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-15 14:36:02 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:

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