Bug 1396397

Summary: oc describe has duplicated resource type
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: ocAssignee: Fabiano Franz <ffranz>
Status: CLOSED ERRATA QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: aos-bugs, ffranz, jokerman, jvallejo, mmccomas, tdawson, wmeng, yanpzhan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: duplicated resource "quota" in the "oc describe" list of valid resources. Consequence: "quota" is printed twice. Fix: removed one entry on "quota" in the "oc describe" list of valid resources. Result: each resource type is only printed once.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-12 19:17:06 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 XiaochuanWang 2016-11-18 09:11:27 UTC
Description of problem:
oc describe shows 2 "quota"
   * quota
   * resourcequotas (aka 'quota')


Version-Release number of selected component (if applicable):
oc v3.4.0.27

How reproducible:
Always

Steps to Reproduce:
1.`oc describe`
2.
3.

Actual results:
   * quota
   * resourcequotas (aka 'quota')


Expected results:
Should remove the "quota".

Additional info:

Comment 1 XiaochuanWang 2016-11-18 10:37:21 UTC
`oc get` also has this duplicate issue with same version of oc.

Comment 2 Juan Vallejo 2017-01-25 22:59:21 UTC
On origin version 1.5.4, "quota" is no longer repeated: https://github.com/openshift/origin/blob/master/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/cmd.go#L171-L212

@ffranz should this bug be closed?

Comment 3 Fabiano Franz 2017-01-26 14:02:41 UTC
Sending to QA so that it can be verified on latest 3.5.

Comment 4 Troy Dawson 2017-01-27 17:28:27 UTC
This has been merged into ocp and is in OCP v3.5.0.10 or newer.

Comment 5 Yanping Zhang 2017-02-03 06:42:18 UTC
Tested against oc v3.5.0.14+20b49d0:
1. $ oc describe

    * replicationcontrollers (aka 'rc')
    * resourcequotas (aka 'quota')
    * rolebindings

2. $ oc get

    * replicationcontrollers (aka 'rc')
    * resourcequotas (aka 'quota')
    * rolebindings

Now the duplicated "quota" has been removed, the bug is fixed, so move it to Verified.

Comment 7 errata-xmlrpc 2017-04-12 19:17:06 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-2017:0884