Bug 1942707 - lr-nat-del -- lr-nat-add in same nbctl command no longer works
Summary: lr-nat-del -- lr-nat-add in same nbctl command no longer works
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux Fast Datapath
Classification: Red Hat
Component: OVN
Version: RHEL 8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: OVN Team
QA Contact: Jianlin Shi
URL:
Whiteboard:
: 1928226 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-24 18:55 UTC by Tim Rozet
Modified: 2023-07-13 07:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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. ***


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