Bug 1704961

Summary: oc adm must-gather not in bash-completion
Product: OpenShift Container Platform Reporter: Eric Jones <erjones>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED ERRATA QA Contact: zhou ying <yinzhou>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: aos-bugs, gblomqui, jokerman, mmccomas
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 11:03:45 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:    
Bug Blocks: 1664187    

Description Eric Jones 2019-04-30 21:56:24 UTC
Description of problem:
oc adm must-gather exists as a part of the newer oc binary and as part of `oc adm --help`, however, it does not show up when tab completing (unlike every other resource on the tool).

Version-Release number of selected component (if applicable):
Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.0-201904211700+86afce9-dirty", GitCommit:"86afce9", GitTreeState:"", BuildDate:"2019-04-21T23:20:35Z", GoVersion:"", Compiler:"", Platform:""}


How reproducible:
100% (per my testing)

Steps to Reproduce:
1. install 4.1 oc cli binary
2. oc adm <tab><tab>

Actual results:
Don't see must-gather

Expected results:
See must-gather

Comment 1 Maciej Szulik 2019-05-08 12:34:50 UTC
I'm moving this to 4.2, for 4.1 it's intentional, the command is hidden and thus no completions are available.

Comment 3 Maciej Szulik 2019-10-17 12:54:40 UTC
This is fixed in 4.3.

Comment 5 zhou ying 2019-10-25 07:55:23 UTC
The issue has fixed:

[root@192 home]# oc version -o yaml 
clientVersion:
  buildDate: "2019-10-24T14:01:53Z"
  compiler: gc
  gitCommit: 118066a57f6280d685153dc0253ca2eb1fdc2333
  gitTreeState: clean
  gitVersion: v4.3.0
  goVersion: go1.12.8
  major: ""
  minor: ""
  platform: linux/amd64
openshiftVersion: 4.3.0-0.nightly-2019-10-25-015726

[root@192 home]# oc adm 
build-chain                         create-error-template               migrate                             policy                              upgrade
certificate                         create-kubeconfig                   must-gather                         prune                               verify-image-signature
......

Comment 7 errata-xmlrpc 2020-01-23 11:03: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, 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-2020:0062