The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 2216314 - ovn-northd: Address set sync from NB DB to SB DB is not working when address has a prefix
Summary: ovn-northd: Address set sync from NB DB to SB DB is not working when address ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn22.12
Version: RHEL 9.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Ales Musil
QA Contact: Jianlin Shi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-06-20 19:48 UTC by OVN Bot
Modified: 2023-07-06 19:17 UTC (History)
4 users (show)

Fixed In Version: ovn22.12-22.12.0-94.el9fdp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-06 19:17:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-2970 0 None None None 2023-06-20 19:50:36 UTC
Red Hat Product Errata RHBA-2023:3986 0 None None None 2023-07-06 19:17:50 UTC

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

Comment 4 Jianlin Shi 2023-06-25 03:10:07 UTC
tested with following script:

systemctl start ovn-northd                                                                            
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

reproduced on ovn22.12-22.12.0-79.el9:

[root@kvm-01-guest09 bz2196885]# 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=0072e14a-b5a7-4cae-b2e6-9748ee5c6a03                                                        
+ ovn-sbctl list address_set                                                                          
_uuid               : 51d28a85-1c55-4982-8137-5ef470aadf2b                                            
addresses           : ["ea:4b:3e:6a:48:73"]                                                           
name                : svc_monitor_mac                                                                 
                                                                                                      
_uuid               : 3ab1bd62-2180-4782-9f9b-1394bf743b39                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1                                                                             
+ ovn-nbctl --wait=sb remove address_set 0072e14a-b5a7-4cae-b2e6-9748ee5c6a03 addresses 10.16.0.47/4  
+ ovn-sbctl list address_set                                                                          
_uuid               : 51d28a85-1c55-4982-8137-5ef470aadf2b                                            
addresses           : ["ea:4b:3e:6a:48:73"]                                                           
name                : svc_monitor_mac                                                                 
                                                                                                      
_uuid               : 3ab1bd62-2180-4782-9f9b-1394bf743b39                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1   

<=== address set is not deleted
                                                                          
[root@kvm-01-guest09 bz2196885]# rpm -qa | grep -E "openvswitch2.17|ovn22.12"                         
openvswitch2.17-2.17.0-92.el9fdp.x86_64                                                               
ovn22.12-22.12.0-79.el9fdp.x86_64                                                                     
ovn22.12-central-22.12.0-79.el9fdp.x86_64                                                             
ovn22.12-host-22.12.0-79.el9fdp.x86_64 

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

[root@kvm-01-guest09 bz2196885]# 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=b65cfdaf-d55e-404d-9114-c0db5dd8a59e                                                        
+ ovn-sbctl list address_set
_uuid               : 8adb6f8c-7e7c-43c4-b68a-adb3aaacacae                                            
addresses           : ["10.16.0.47/4", "10.16.3.48/32"]                                               
name                : as1

_uuid               : 36e55ddd-1814-4569-b187-28a7d6d5a4f6                                            
addresses           : ["56:94:36:f7:ca:d7"]                                                           
name                : svc_monitor_mac                                                                 
+ ovn-nbctl --wait=sb remove address_set b65cfdaf-d55e-404d-9114-c0db5dd8a59e addresses 10.16.0.47/4  
+ ovn-sbctl list address_set
_uuid               : 8adb6f8c-7e7c-43c4-b68a-adb3aaacacae                                            
addresses           : ["10.16.3.48/32"]                                                               
name                : as1

<=== address set is deleted

_uuid               : 36e55ddd-1814-4569-b187-28a7d6d5a4f6                                            
addresses           : ["56:94:36:f7:ca:d7"]                                                           
name                : svc_monitor_mac
[root@kvm-01-guest09 bz2196885]# rpm -qa | grep -E "openvswitch2.17|ovn22.12"                         
openvswitch2.17-2.17.0-92.el9fdp.x86_64                                                               
ovn22.12-22.12.0-94.el9fdp.x86_64                                                                     
ovn22.12-central-22.12.0-94.el9fdp.x86_64                                                             
ovn22.12-host-22.12.0-94.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 (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:3986


Note You need to log in before you can comment on or make changes to this bug.