The FDP team is no longer accepting new bugs in Bugzilla. Please report your issues under FDP project in Jira. Thanks.
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: CLOSED WONTFIX
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: 2024-02-14 21:15 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-02-14 21:12:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FD-1162 0 None None None 2024-02-14 21:15:36 UTC

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


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