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.
Fix sent for review: http://patchwork.ozlabs.org/project/ovn/list/?series=282940&state=*
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"}
*** Bug 2059812 has been marked as a duplicate of this bug. ***
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