Bug 1396397 - oc describe has duplicated resource type
Summary: oc describe has duplicated resource type
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-18 09:11 UTC by XiaochuanWang
Modified: 2017-07-24 14:11 UTC (History)
8 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-04-12 19:17:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0884 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.5 RPM Release Advisory 2017-04-12 22:50:07 UTC

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


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