Bug 1470718 - bash-completion by default
Summary: bash-completion by default
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-openstackclient
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Kevin Carter
QA Contact: David Rosenfeld
URL:
Whiteboard: NeedsAllocation
Depends On: 1928392
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-13 14:05 UTC by David Vallee Delisle
Modified: 2022-03-23 22:10 UTC (History)
14 users (show)

Fixed In Version: python-openstackclient-4.0.2-2.20210719124816.54bf2c0.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-23 22:10:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 31302 0 None None None 2021-06-04 18:46:34 UTC
RDO 33850 0 None None None 2021-07-08 15:25:59 UTC
RDO 34444 0 None None None 2021-07-08 15:25:59 UTC
Red Hat Issue Tracker OSP-4395 0 None None None 2022-01-28 15:44:39 UTC
Red Hat Product Errata RHBA-2022:1001 0 None None None 2022-03-23 22:10:36 UTC

Description David Vallee Delisle 2017-07-13 14:05:23 UTC
Description of problem:
python-openstackclient should install bash-completion file in /usr/share/bash-completion/completions

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. install bash-completion
2. install python-openstackclient

Actual results:
There's no bash-completion for the openstack command

Expected results:
There should be bash-completion

Additional info:
According to openstack's docs, there's a builtin command to generate the autocomplete file:
https://docs.openstack.org/python-openstackclient/latest/cli/command-objects/complete.html

So doing something like this in the %postscript might solve the issue:
rpm -q bash-completion > /dev/null 2>&1 && openstack complete > /usr/share/bash-completion/completions/openstack

Comment 1 David Hill 2017-07-13 14:17:17 UTC
Hello guys,

   I think this is a great idea and in python-openstackclient spec file , we should also add : 

Requires: bash-completion

Which isn't a big dependency ...

Thank you very much,

David Hill

Comment 7 Christopher Brown 2020-11-26 09:57:13 UTC
Re-opening - this isn't related the UI and not having auto-completion by default is a pain.

Comment 8 pweeks 2020-12-02 20:11:53 UTC
simple change we can make in the next release

Comment 10 Yaniv Kaul 2021-07-05 15:18:32 UTC
It's a great RFE, with a patch merged upstream, what needs to be done to complete it on time for 16.2? Otherwise, please:
(1) defer to 17.0
(2) commit to it for 17.0, or close as WONTFIX (or DEFERRED).

Comment 21 errata-xmlrpc 2022-03-23 22:10:09 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 (Release of components for Red Hat OpenStack Platform 16.2.2), 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-2022:1001


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