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 2196885

Summary: ovn-northd: Address set sync from NB DB to SB DB is not working when address has a prefix
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Numan Siddique <nusiddiq>
Component: ovn22.12Assignee: Ales Musil <amusil>
Status: CLOSED ERRATA QA Contact: Jianlin Shi <jishi>
Severity: medium Docs Contact:
Priority: high    
Version: RHEL 9.0CC: amusil, ctrautma, jiji, mmichels
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovn22.12-22.12.0-94.el8fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-06 20:05:32 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 Numan Siddique 2023-05-10 16:11:41 UTC
Description of problem:

ovn-northd is not syncing the address sets from NB DB to SB DB in some cases.

Regression after the address_set I-P was added.

Steps to reproduce

as_uuid=$(ovn-nbctl --wait=sb create address-set name=as1 addresses=10.16.0.47/4,10.16.3.48/32)

ovn-sbctl list address_set

ovn-nbctl --wait=sb remove address_set $as_uuid addresses 10.16.0.47/4

ovn-sbctl list address_set

Issue reported upstream at : https://mail.openvswitch.org/pipermail/ovs-discuss/2023-May/052426.html



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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Mark Michelson 2023-05-19 12:40:02 UTC
Giving this "high"priority because it is a regression.

Comment 3 OVN Bot 2023-06-20 19:49:42 UTC
ovn22.12 fast-datapath-rhel-9 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2216314
ovn23.03 fast-datapath-rhel-8 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2216318
ovn23.03 fast-datapath-rhel-9 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2216319
ovn23.06 fast-datapath-rhel-8 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2216322
ovn23.06 fast-datapath-rhel-9 clone created at https://bugzilla.redhat.com/show_bug.cgi?id=2216323

Comment 6 Jianlin Shi 2023-06-26 02:20:28 UTC
with script in https://bugzilla.redhat.com/show_bug.cgi?id=2216314#c4, reproduced on ovn22.12-22.12.0-79.el8:

+ ovn-sbctl list address_set
_uuid               : 7f67a66d-929d-4ae4-8879-da0a5b17b669                                            
addresses           : ["1e:d4:30:56:c4:1a"]                                                           
name                : svc_monitor_mac

_uuid               : 56393b53-f0cd-435b-aa3b-2acf5fd69fbb                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1
+ ovn-nbctl --wait=sb remove address_set a7191088-9ac9-4178-bc2c-347cf744fbaf addresses 10.16.0.47/4  
+ ovn-sbctl list address_set                                                                          
_uuid               : 7f67a66d-929d-4ae4-8879-da0a5b17b669                                            
addresses           : ["1e:d4:30:56:c4:1a"]                                                           
name                : svc_monitor_mac                                                                 

_uuid               : 56393b53-f0cd-435b-aa3b-2acf5fd69fbb                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]
name                : as1                                                                             
[root@kvm-01-guest06 bz2196885]# rpm -qa | grep -E "openvswitch2.17|ovn22.12"                         
openvswitch2.17-2.17.0-105.el8fdp.x86_64
ovn22.12-22.12.0-79.el8fdp.x86_64                                                                     
ovn22.12-host-22.12.0-79.el8fdp.x86_64
ovn22.12-central-22.12.0-79.el8fdp.x86_64

Verified on ovn22.12-22.12.0-94.el8:

+ ovn-sbctl list address_set
_uuid               : a33fc315-35ec-40d1-8eae-f6955b2d2dfc                                            
addresses           : ["7a:a8:83:38:1d:39"]                                                           
name                : svc_monitor_mac                                                                 

_uuid               : a8ca22a5-5ddb-43b0-b86b-cf15c92f5c88                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1
+ ovn-nbctl --wait=sb remove address_set ee6f51b0-c04f-4feb-8b48-4b07753862b7 addresses 10.16.0.47/4  
+ ovn-sbctl list address_set                                                                          
_uuid               : a33fc315-35ec-40d1-8eae-f6955b2d2dfc                                            
addresses           : ["7a:a8:83:38:1d:39"]                                                           
name                : svc_monitor_mac                                                                 

_uuid               : a8ca22a5-5ddb-43b0-b86b-cf15c92f5c88                                            
addresses           : ["10.16.3.48/32"]                                                               
name                : as1
[root@kvm-01-guest06 bz2196885]# rpm -qa | grep -E "openvswitch2.17|ovn22.12"                         
openvswitch2.17-2.17.0-105.el8fdp.x86_64
ovn22.12-22.12.0-94.el8fdp.x86_64                                                                     
ovn22.12-central-22.12.0-94.el8fdp.x86_64                                                             
ovn22.12-host-22.12.0-94.el8fdp.x86_64

Comment 8 errata-xmlrpc 2023-07-06 20:05:32 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 (ovn22.12 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-2023:3992