Bug 1270731

Summary: Tab auto-complete doesn't work for oc in the client package
Product: OpenShift Container Platform Reporter: Ma xiaoqiang <xiama>
Component: ocAssignee: Troy Dawson <tdawson>
Status: CLOSED CURRENTRELEASE QA Contact: Wei Sun <wsun>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: aos-bugs, jokerman, mmccomas, xtian
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: atomic-openshift-3.0.2.901-0.git.61.568adb6.el7aos.x86_64 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-23 14:25:21 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 Ma xiaoqiang 2015-10-12 09:27:10 UTC
Description of problem:
Tab auto-complete doesn't work for oc in the client package


Version-Release number of selected component (if applicable):
atomic-openshift-clients-3.0.2.900-0.git.96.cc409db.el7aos.x86_64

How reproducible:
100%


Steps to Reproduce:
1. install the client on a clean machine
#yum install atomic-openshift-clients

2. run 'oc + tab'
#oc +tab

Actual results:
Tab auto-complete doesn't work

there are two issues:
1. Lack of bash-completion package on the server
2. Lack of '/etc/bash_completion.d/oc' file.

Expected results:
Show sub-commands of oc. 


Additional info:

Comment 1 Troy Dawson 2015-10-15 14:29:46 UTC
The bash completion oc file is now in atomic-openshift-clients with this pull request.
https://github.com/openshift/origin/pull/5119

As for getting bash-completion on the server, I feel that should be up to the admin.  Not everyone likes bash-completion, and not having it does not take away from the functionality of oc.

Comment 3 Ma xiaoqiang 2015-10-19 05:23:11 UTC
Check on puddle [ose-3.1/2015-10-17.1]

This issue is fixes, move it to VERIFIED.

Comment 4 Brenton Leanhardt 2015-11-23 14:25:21 UTC
This fix is available in OpenShift Enterprise 3.1.