Bug 1470718

Summary: bash-completion by default
Product: Red Hat OpenStack Reporter: David Vallee Delisle <dvd>
Component: python-openstackclientAssignee: Kevin Carter <kecarter>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: low Docs Contact:
Priority: low    
Version: 16.2 (Train)CC: apevec, beth.white, chris.brown, dhill, drosenfe, hdalwadi, jbuchta, kecarter, lhh, nweinber, pweeks, srevivo, ukalifon, ykarel
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: NeedsAllocation
Fixed In Version: python-openstackclient-4.0.2-2.20210719124816.54bf2c0.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-23 22:10:09 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:
Bug Depends On: 1928392    
Bug Blocks:    

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