Bug 1918187

Summary: ovn-nbctl destroy table_name doesn't report error
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Jianlin Shi <jishi>
Component: openvswitch3.1Assignee: Michael Santana <msantana>
Status: CLOSED ERRATA QA Contact: Zhiqiang Fang <zfang>
Severity: low Docs Contact:
Priority: low    
Version: FDP 21.ACC: aroytman, ctrautma, dcbw, dceara, fleitner, jhsiao, jishi, msantana, ralongi, tredaelli
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openvswitch2.16 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-06 19:17:49 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 Jianlin Shi 2021-01-20 09:02:50 UTC
Description of problem:
ovn-nbctl destroy table_name doesn't report error

Version-Release number of selected component (if applicable):
ovn2.13-20.12.0-1

How reproducible:
always

Steps to Reproduce:
1. ovn-nbctl ls-add ls1
2. ovn-nbctl destroy logical_switch

Actual results:
doesn't report error and doesn't destroy logical_switch

Expected results:
should report error

Additional info:

Comment 1 Alexey Roytman 2021-03-24 14:42:24 UTC
The patch was submitted 
https://github.com/openvswitch/ovs/pull/353

Comment 2 Dan Williams 2022-06-21 14:47:26 UTC
Accepted upstream; should be in OVS 2.16 and later

http://patchwork.ozlabs.org/project/openvswitch/list/?series=236353&state=%2A&archive=both

Comment 3 Flavio Leitner 2023-06-14 17:47:53 UTC
Moving to 3.1 so that it can be verified in the next FDP release.

Comment 5 Timothy Redaelli 2023-06-16 21:48:56 UTC
It's included starting from v2.16.0, so I'm adding it to FDP 23.F RHEL9 errata

Comment 9 Zhiqiang Fang 2023-07-06 14:39:30 UTC
It is verified on openvswitch3.1-3.1.0-33.el9fdp.x86_64. I should add the logical_switch uuid.

[root@hpe-netqe-syn480g10-06 ~]# rpm -aq |egrep "ovn|openv"
openvswitch-selinux-extra-policy-1.0-31.el9fdp.noarch
openvswitch3.1-3.1.0-33.el9fdp.x86_64
ovn23.03-23.03.0-69.el9fdp.x86_64
ovn23.03-central-23.03.0-69.el9fdp.x86_64
ovn23.03-host-23.03.0-69.el9fdp.x86_64
[root@hpe-netqe-syn480g10-06 ~]# ovn-nbctl ls-add ls1
[root@hpe-netqe-syn480g10-06 ~]# ovn-nbctl show
switch e2dc0278-24ef-4c04-a455-3802b5f29583 (ls1)

[root@hpe-netqe-syn480g10-06 ~]# ovn-nbctl destroy logical_switch e2dc0278-24ef-4c04-a455-3802b5f29583
[root@hpe-netqe-syn480g10-06 ~]#

[root@hpe-netqe-syn480g10-06 ~]# ovn-nbctl show
[root@hpe-netqe-syn480g10-06 ~]#

Comment 11 errata-xmlrpc 2023-07-06 19:17:49 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 (openvswitch3.1 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-2023:3989