Bug 2216318

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.03Assignee: 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.03-23.03.0-69.el8fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-06 20:05:25 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:44 UTC
This is an automatically-generated clone of issue https://bugzilla.redhat.com/show_bug.cgi?id=2196885

Comment 3 Jianlin Shi 2023-06-26 02:31:58 UTC
reproduced on ovn23.03-23.03.0-56.el8:

+ ovn-sbctl list address_set
_uuid               : de2c797d-3f5d-4643-a194-92b7076bf672
addresses           : ["e6:14:b9:f0:17:63"]
name                : svc_monitor_mac

_uuid               : c2d0531f-7485-47d3-b702-238d03945889                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1
+ ovn-nbctl --wait=sb remove address_set b312f124-1bb0-466c-bd32-77087e4a4b32 addresses 10.16.0.47/4  
+ ovn-sbctl list address_set                                                                          
_uuid               : de2c797d-3f5d-4643-a194-92b7076bf672                                            
addresses           : ["e6:14:b9:f0:17:63"]                                                           
name                : svc_monitor_mac                                                                 
                                                                                                      
_uuid               : c2d0531f-7485-47d3-b702-238d03945889                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1                                                                             
[root@kvm-01-guest06 bz2196885]# rpm -qa | grep -E "openvswitch2.17|ovn23.03"                         
openvswitch2.17-2.17.0-105.el8fdp.x86_64                                                              
ovn23.03-central-23.03.0-56.el8fdp.x86_64                                                             
ovn23.03-23.03.0-56.el8fdp.x86_64                                                                     
ovn23.03-host-23.03.0-56.el8fdp.x86_64

Verified on ovn23.03-23.03.0-69.el8:

+ as_uuid=b7d50d3a-a3e7-42a5-a51b-dd0d02005cdd                                                        
+ ovn-sbctl list address_set
_uuid               : 01359afd-8ded-43ad-8804-ff071f0e970c
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]
name                : as1

_uuid               : a1ad33c9-9c3e-493f-a881-6c5d8415dbaa                                            
addresses           : ["e2:cc:a0:f8:be:33"]                                                           
name                : svc_monitor_mac                                                                 
+ ovn-nbctl --wait=sb remove address_set b7d50d3a-a3e7-42a5-a51b-dd0d02005cdd addresses 10.16.0.47/4  
+ ovn-sbctl list address_set                                                                          
_uuid               : 01359afd-8ded-43ad-8804-ff071f0e970c                                            
addresses           : ["10.16.3.48/32"]                                                               
name                : as1                                                                             
                                                                                                      
_uuid               : a1ad33c9-9c3e-493f-a881-6c5d8415dbaa                                            
addresses           : ["e2:cc:a0:f8:be:33"]                                                           
name                : svc_monitor_mac                                                                 
[root@kvm-01-guest06 bz2196885]# rpm -qa | grep -E "openvswitch2.17|ovn23.03"                         
openvswitch2.17-2.17.0-105.el8fdp.x86_64                                                              
ovn23.03-host-23.03.0-69.el8fdp.x86_64                                                                
ovn23.03-central-23.03.0-69.el8fdp.x86_64                                                             
ovn23.03-23.03.0-69.el8fdp.x86_64

Comment 5 errata-xmlrpc 2023-07-06 20:05:25 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.03 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:3991