The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
Bug 2046274 - [ovn-northd] Failure to reconcile duplicate SB Load Balancer entries.
Summary: [ovn-northd] Failure to reconcile duplicate SB Load Balancer entries.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: ovn-2021
Version: FDP 21.K
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
: FDP 22.B
Assignee: Dumitru Ceara
QA Contact: ying xu
URL:
Whiteboard:
: 2059812 (view as bug list)
Depends On:
Blocks: 2045577
TreeView+ depends on / blocked
 
Reported: 2022-01-26 13:50 UTC by Dumitru Ceara
Modified: 2022-05-07 07:34 UTC (History)
10 users (show)

Fixed In Version: ovn-2021-21.12.0-15.el8fdp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2045577
Environment:
Last Closed: 2022-03-30 16:28:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-1743 0 None None None 2022-01-26 13:54:54 UTC
Red Hat Product Errata RHBA-2022:1144 0 None None None 2022-03-30 16:28:42 UTC

Comment 1 Dumitru Ceara 2022-01-26 14:08:55 UTC
Simplified reproducer:

ovn-nbctl ls-add ls -- lb-add lb1 10.0.0.1:80 10.0.0.2:80 -- ls-lb-add ls lb1
ovn-nbctl --wait=sb sync

dps=$(ovn-sbctl --bare --columns datapaths list Load_Balancer)
nlb=$(ovn-nbctl --bare --columns _uuid list Load_Balancer)
AT_CHECK([ovn-sbctl create Load_Balancer name=lb1 datapaths="$dps" external_ids="lb_id=$nlb"], [0], [ignore])

check ovn-nbctl --wait=sb sync

# Check that there is exactly one SB:Load_Balancer row here.

Comment 2 Dumitru Ceara 2022-01-26 14:25:43 UTC
Fix sent for review: http://patchwork.ozlabs.org/project/ovn/list/?series=282940&state=*

Comment 7 ying xu 2022-03-09 03:57:43 UTC
reproduced on version:
# rpm -qa|grep ovn
ovn-2021-central-21.12.0-11.el8fdp.x86_64
ovn-2021-21.12.0-11.el8fdp.x86_64
ovn-2021-host-21.12.0-11.el8fdp.x86_64

# ovn-nbctl list load_balancer
_uuid               : 644e4c39-2e67-4aa5-9ce2-f3b1f4149199
external_ids        : {}
health_check        : []
ip_port_mappings    : {}
name                : lb0
options             : {}
protocol            : tcp
selection_fields    : []
vips                : {"192.168.1.100"="192.168.1.2"}
[root@dell-per740-53 acl]# ovn-sbctl list load_balancer
_uuid               : e2c20d6f-932b-4eb4-b263-0f8ae0cccbc6
datapaths           : [27f2d4e7-8429-40c3-9bca-d57ad57a509c]
external_ids        : {lb_id="644e4c39-2e67-4aa5-9ce2-f3b1f4149199"}
name                : lb0
options             : {hairpin_orig_tuple="true"}
protocol            : tcp
vips                : {"192.168.1.100"="192.168.1.2"}
[root@dell-per740-53 acl]# 
[root@dell-per740-53 acl]# dps=$(ovn-sbctl --bare --columns datapaths list Load_Balancer)
[root@dell-per740-53 acl]# nlb=$(ovn-nbctl --bare --columns _uuid list Load_Balancer)
[root@dell-per740-53 acl]# ovn-sbctl create Load_Balancer name=lb1 datapaths="$dps" external_ids="lb_id=$nlb"
b842f04b-3564-47b8-bd74-e7b0fe007e79
[root@dell-per740-53 acl]# ovn-sbctl list load_balancer                 --------------------here are two items.
_uuid               : b842f04b-3564-47b8-bd74-e7b0fe007e79
datapaths           : [27f2d4e7-8429-40c3-9bca-d57ad57a509c]
external_ids        : {lb_id="644e4c39-2e67-4aa5-9ce2-f3b1f4149199"}
name                : lb1
options             : {}
protocol            : []
vips                : {}

_uuid               : e2c20d6f-932b-4eb4-b263-0f8ae0cccbc6
datapaths           : [27f2d4e7-8429-40c3-9bca-d57ad57a509c]
external_ids        : {lb_id="644e4c39-2e67-4aa5-9ce2-f3b1f4149199"}
name                : lb0
options             : {hairpin_orig_tuple="true"}
protocol            : tcp
vips                : {"192.168.1.100"="192.168.1.2"}


verified on version:
# ovn-nbctl list load_balancer
_uuid               : 96c14f1c-7152-4470-9cbe-a1753afe6916
external_ids        : {}
health_check        : []
ip_port_mappings    : {}
name                : lb0
options             : {}
protocol            : tcp
selection_fields    : []
vips                : {"192.168.1.100"="192.168.1.2"}
[root@dell-per740-53 acl]# ovn-sbctl list load_balancer
_uuid               : c7f64b13-a56c-4af8-91b0-c7f850c94338
datapaths           : [63810bb0-6fe3-48cb-83e5-52fb08c793f6]
external_ids        : {lb_id="96c14f1c-7152-4470-9cbe-a1753afe6916"}
name                : lb0
options             : {hairpin_orig_tuple="true"}
protocol            : tcp
vips                : {"192.168.1.100"="192.168.1.2"}
[root@dell-per740-53 acl]# 
[root@dell-per740-53 acl]# dps=$(ovn-sbctl --bare --columns datapaths list Load_Balancer)
[root@dell-per740-53 acl]# nlb=$(ovn-nbctl --bare --columns _uuid list Load_Balancer)
[root@dell-per740-53 acl]# ovn-sbctl create Load_Balancer name=lb1 datapaths="$dps" external_ids="lb_id=$nlb"
3e05685a-6d73-4aec-81b6-0b58c6e4d0b2
[root@dell-per740-53 acl]# ovn-nbctl --wait=sb sync
[root@dell-per740-53 acl]# 
[root@dell-per740-53 acl]# ovn-sbctl list load_balancer               --------------------------------only 1 item now.
_uuid               : 3e05685a-6d73-4aec-81b6-0b58c6e4d0b2
datapaths           : [63810bb0-6fe3-48cb-83e5-52fb08c793f6]
external_ids        : {lb_id="96c14f1c-7152-4470-9cbe-a1753afe6916"}
name                : lb0
options             : {hairpin_orig_tuple="true"}
protocol            : tcp
vips                : {"192.168.1.100"="192.168.1.2"}

Comment 9 Andreas Karis 2022-03-25 09:24:50 UTC
*** Bug 2059812 has been marked as a duplicate of this bug. ***

Comment 10 errata-xmlrpc 2022-03-30 16:28:33 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 (ovn 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-2022:1144


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