Bug 2211167

Summary: ovs-vsctl autocomplete misbehaving
Product: Red Hat Enterprise Linux Fast Datapath Reporter: Timothy Redaelli <tredaelli>
Component: openvswitch2.17Assignee: Timothy Redaelli <tredaelli>
Status: CLOSED ERRATA QA Contact: qding
Severity: low Docs Contact:
Priority: unspecified    
Version: RHEL 8.0CC: ctrautma, jhsiao, ralongi
Target Milestone: ---Flags: qding: needinfo? (tredaelli)
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openvswitch2.17-2.17.0-102.el8fdp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-06 20:05:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Timothy Redaelli 2023-05-30 15:20:53 UTC
+++ This bug was initially created as a clone of Bug #2170344 +++

Description of problem:
When adding a port to some bridge and pressing the tab for autocomplete, the ovs-vsctl throws an error. 




Version-Release number of selected component (if applicable):
[root@ovs ~]# ovs-vsctl --version
ovs-vsctl (Open vSwitch) 2.17.6
DB Schema 8.3.0

How reproducible:


Steps to Reproduce:
1. ovs-vsctl add-port mybridge 
2. *press tab*

Actual results:

[root@ovs ~]# ovs-vsctl add-port mybridge enp-bash: export: `BASH_FUNC_which%%': not a valid identifier
-bash: export: `${which_declare}': not a valid identifier
-bash: export: `)': not a valid identifier
-bash: export: `|': not a valid identifier
-bash: export: `/usr/bin/which': not a valid identifier
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: --: invalid option
export: usage: export [-fn] [name[=value] ...] or export -p
-bash: export: `$@': not a valid identifier
-bash: export: `}': not a valid identifier

Enter a new port:
[root@ovs ~]$ ovs-vsctl add-port mybridge enp^C



Expected results:


Additional info:

Comment 1 Timothy Redaelli 2023-05-30 15:20:56 UTC
* Mon May 29 2023 Open vSwitch CI <ovs-ci> - 2.17.0-102
- Merging upstream branch-2.17 [RH git: 4e79737790]
    Commit list:
    5285dad182 utilities/bashcomp: Fix PS1 generation on new bash. (#2170344)
    ebe7bd7b68 netdev-offload-dpdk: Fix crash in debug log.

Comment 7 errata-xmlrpc 2023-07-06 20:05:45 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 (openvswitch2.17 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:3993