Bug 2216322

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: OVN Bot <ovn-bot>
Component: ovn23.06Assignee: 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: ovn23.06-23.06.0-13.el8fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-01-24 11:05:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OVN Bot 2023-06-20 19:48:56 UTC
This is an automatically-generated clone of issue https://bugzilla.redhat.com/show_bug.cgi?id=2196885

Comment 3 Jianlin Shi 2023-12-05 02:13:52 UTC
with reproducer in https://bugzilla.redhat.com/show_bug.cgi?id=2216314#c4

Verified on ovn23.06-23.06.1-60.el8:

[root@kvm-02-guest29 bz2216323]# bash -x rep.sh                                                       
+ systemctl start ovn-northd                                                                          
++ ovn-nbctl --wait=sb create address-set name=as1 addresses=10.16.0.47/4,10.16.3.48/32               
+ as_uuid=18f3e8ce-adf5-421b-b507-3a8e48d151a0                                                        
+ ovn-sbctl list address_set                                                                          
_uuid               : 3fc173c9-bfac-4288-a3b8-8a07ab7e94f7                                            
addresses           : ["6e:fc:bc:14:74:07"]                                                           
name                : svc_monitor_mac                                                                 
                                                                                                      
_uuid               : 0b7e3ab7-6bc8-4a54-a5c4-96ea568d5a75                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1                                                                             
+ ovn-nbctl --wait=sb remove address_set 18f3e8ce-adf5-421b-b507-3a8e48d151a0 addresses 10.16.0.47/4  
+ ovn-sbctl list address_set                                                                          
_uuid               : 3fc173c9-bfac-4288-a3b8-8a07ab7e94f7                                            
addresses           : ["6e:fc:bc:14:74:07"]                                                           
name                : svc_monitor_mac    

<=== address set is deleted                                                             
                                                                                                      
_uuid               : 0b7e3ab7-6bc8-4a54-a5c4-96ea568d5a75                                            
addresses           : ["10.16.3.48/32"]                                                               
name                : as1                                                                             
[root@kvm-02-guest29 bz2216323]# rpm -qa | grep -E "openvswitch3.1|ovn23.06"                          
openvswitch3.1-3.1.0-70.el8fdp.x86_64                                                                 
ovn23.06-23.06.1-60.el8fdp.x86_64                                                                     
ovn23.06-central-23.06.1-60.el8fdp.x86_64                                                             
ovn23.06-host-23.06.1-60.el8fdp.x86_64

Comment 5 errata-xmlrpc 2024-01-24 11:05:22 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 (ovn23.06 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-2024:0388