Bug 1942707

Summary: lr-nat-del -- lr-nat-add in same nbctl command no longer works
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Tim Rozet <trozet>
Component: OVNAssignee: OVN Team <ovnteam>
Status: CLOSED WONTFIX QA Contact: Jianlin Shi <jishi>
Severity: medium Docs Contact:
Priority: medium    
Version: RHEL 8.0CC: ctrautma, mmichels
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-14 21:12:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim Rozet 2021-03-24 18:55:00 UTC
Description of problem:
Executing these commands in the same transaction no longer works. ovn-nbctl complains:

[root@ovn-control-plane ~]# ovn-nbctl lr-nat-list GR_`hostname`
TYPE             EXTERNAL_IP        EXTERNAL_PORT    LOGICAL_IP            EXTERNAL_MAC         LOGICAL_PORT
snat             172.18.0.3                          10.244.0.0/16
[root@ovn-control-plane ~]# ovn-nbctl lr-nat-del GR_`hostname` snat 10.244.0.0/16 -- lr-nat-add GR_`hostname` snat 172.18.0.3 10.244.0.0/16
ovn-nbctl: 172.18.0.3, 10.244.0.0/16: a NAT with this external_ip and logical_ip already exists
[root@ovn-control-plane ~]# rpm -qa | grep ovn
ovn-20.12.0-25.fc33.x86_64
ovn-central-20.12.0-25.fc33.x86_64
ovn-host-20.12.0-25.fc33.x86_64
ovn-vtep-20.12.0-25.fc33.x86_64
[root@ovn-control-plane ~]# rpm -qa | grep openvs
openvswitch-2.15.0-1.fc33.x86_64
python3-openvswitch-2.15.0-1.fc33.x86_64


This used to work in previous versions. As Numan found the root cause looks to be:
https://github.com/ovn-org/ovn/commit/278ebb999411920206980f6b1b8c9b2d0b69d299

Comment 1 Dan Williams 2021-05-04 14:24:24 UTC
*** Bug 1928226 has been marked as a duplicate of this bug. ***

Comment 2 OVN Bot 2024-02-14 21:12:32 UTC
This issue is being closed as an automatic process due to the issue's age. If you wish to re-open this issue, please do so in Jira (https://issues.redhat.com) in the 'FDP' project. Please be sure to set the component to the latest OVN version where this issue is known to occur. If this is a feature request or improvement, please set the component to 'OVN'.