Bug 1609729

Summary: [admin] Should not show duplicate resources in different API version
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: medium    
Version: 3.11.0CC: aos-bugs, jokerman, mmccomas, yapei
Target Milestone: ---   
Target Release: 3.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-11 07:22:47 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 Yadan Pei 2018-07-30 09:38:47 UTC
Description of problem:
In Search & Events drop down list, there are some duplicate resources in different API version, should show one preferred API version 

Version-Release number of selected component (if applicable):
registry.reg-aws.openshift.com:443/openshift3/ose-console                 7afc9cdb911ba       283MB

How reproducible:
Always

Steps to Reproduce:
1.Go to admin console
2.Go to Search, open drop down list
3.Go to Events, open drop down list

Actual results:
2-3. There are some duplicated resources, for example:Deployment
One is in /api/kubernetes/apis/apps/v1, the other is in /api/kubernetes/apis/extensions/v1beta1/ version
ClusterRoleBinding: One is in /api/kubernetes/apis/rbac.authorization.k8s.io/v1, the other is /api/kubernetes/apis/authorization.openshift.io/v1

Expected results:
2-3. Show one preferred API version is ok

Additional info:

Comment 1 Samuel Padgett 2018-07-30 12:57:15 UTC
This is fixed by https://github.com/openshift/console/pull/321

Note that there are some cases where duplicates might be expected. We've removed some known ones, but there's no way for us to know if two resources with the same `kind` name in entirely different API groups are actually the same or different.

Comment 2 Yadan Pei 2018-07-31 06:48:26 UTC
Waiting for new ocp images to test the fix

Comment 3 Yadan Pei 2018-08-03 06:32:13 UTC
Checked on openshift v3.11.0-0.10.0 with console images:

registry.reg-aws.openshift.com:443/openshift3/ose-console                   v3.11               abfda950c7e7        8 hours ago         273 MB


Search and Events page has no duplicate resources shown.

Move to VERIFIED

Comment 5 errata-xmlrpc 2018-10-11 07:22:47 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-2018:2652