Bug 1704961 - oc adm must-gather not in bash-completion
Summary: oc adm must-gather not in bash-completion
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.3.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks: 1664187
TreeView+ depends on / blocked
 
Reported: 2019-04-30 21:56 UTC by Eric Jones
Modified: 2020-01-23 11:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-23 11:03:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:0062 0 None None None 2020-01-23 11:04:13 UTC

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


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