Bug 2216319

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.el9fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-06 19:17:43 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:46 UTC
This is an automatically-generated clone of issue https://bugzilla.redhat.com/show_bug.cgi?id=2196885

Comment 4 Jianlin Shi 2023-06-26 02:27:52 UTC
with script in https://bugzilla.redhat.com/show_bug.cgi?id=2216314#c4:

reproduced on ovn23.03-23.03.0-56.el9:

+ as_uuid=a54c42a8-2844-4294-8552-9f4c0b44be31                                                        
+ ovn-sbctl list address_set                                                                          
_uuid               : 24506251-c09d-4ac7-aa08-7552c08a3505                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1                                                                             
                                                                                                      
_uuid               : 81a45483-ce78-4ead-89d1-5e02347c5f46                                            
addresses           : ["7a:6d:cc:3d:48:bc"]                                                           
name                : svc_monitor_mac                                                                 
+ ovn-nbctl --wait=sb remove address_set a54c42a8-2844-4294-8552-9f4c0b44be31 addresses 10.16.0.47/4  
+ ovn-sbctl list address_set                                                                          
_uuid               : 24506251-c09d-4ac7-aa08-7552c08a3505                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1                                                                             
                                                                                                      
_uuid               : 81a45483-ce78-4ead-89d1-5e02347c5f46                                            
addresses           : ["7a:6d:cc:3d:48:bc"]                                                           
name                : svc_monitor_mac                                                                 
[root@kvm-01-guest09 bz2196885]# rpm -qa | grep -E "openvswitch2.17|ovn23.03"                         
openvswitch2.17-2.17.0-92.el9fdp.x86_64                                                               
ovn23.03-23.03.0-56.el9fdp.x86_64                                                                     
ovn23.03-central-23.03.0-56.el9fdp.x86_64                                                             
ovn23.03-host-23.03.0-56.el9fdp.x86_64

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

+ ovn-sbctl list address_set
_uuid               : eafda774-8550-4a53-aa10-460411a029aa
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]
name                : as1

_uuid               : 20b9cf64-02ed-4f9e-858f-31852bb1e1f7
addresses           : ["56:76:0a:5d:34:09"]
name                : svc_monitor_mac
+ ovn-nbctl --wait=sb remove address_set 45310357-080d-4288-b5de-b17a04fcd46d addresses 10.16.0.47/4
+ ovn-sbctl list address_set
_uuid               : eafda774-8550-4a53-aa10-460411a029aa
addresses           : ["10.16.3.48/32"]
name                : as1

_uuid               : 20b9cf64-02ed-4f9e-858f-31852bb1e1f7
addresses           : ["56:76:0a:5d:34:09"]
name                : svc_monitor_mac
[root@kvm-01-guest09 bz2196885]# rpm -qa | grep -E "openvswitch2.17|ovn23.03"
openvswitch2.17-2.17.0-92.el9fdp.x86_64
ovn23.03-23.03.0-69.el9fdp.x86_64
ovn23.03-central-23.03.0-69.el9fdp.x86_64
ovn23.03-host-23.03.0-69.el9fdp.x86_64

Comment 6 errata-xmlrpc 2023-07-06 19:17:43 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:3987