Bug 1888036

Summary: Operator details shows old CRD versions
Product: OpenShift Container Platform Reporter: Jon Jackson <jonjacks>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: low    
Version: 4.5CC: aos-bugs, jhadvig, jokerman, yanpzhan
Target Milestone: ---Keywords: UpcomingSprint
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: CSV and PackageManifests listed every provided API version instead of just the latest version. Consequence: CSV and PackageManifest pages could show duplicate provided APIs. Fix: Update the logic for retrieving CSV and PackageManifiest provided APIS so that only the latest API version is used for each. Result: Only the latest version of each provided API is displayed on PackageManifest and CSV pages.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:25:41 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: 1980182    
Attachments:
Description Flags
Mock CSV and CRD none

Description Jon Jackson 2020-10-13 20:37:54 UTC
Created attachment 1721309 [details]
Mock CSV and CRD

Created attachment 1721309 [details]
Mock CSV and CRD

Description of problem:

Operator details page shows instance list tab for all API versions of a CRD. We should only show for the latest version.


Version-Release number of selected component (if applicable):
4.6

How reproducible:
Always

Steps to Reproduce:
1. Create mock resources from provided yaml attachment
2. In the project where the above yamle was created, visit Installed Operators > Mock Operator.

Actual results:
The horizontal nav tabs will show several repeated instance list pages for each different owned version of the same CRD. 

Expected results:
Only the latest owned CRD version for each CRD kind should be shown


Additional info:

Comment 3 Jon Jackson 2020-10-23 15:12:09 UTC
Next in my queue.

Comment 4 Jon Jackson 2020-11-13 15:53:25 UTC
Fix in progress.

Comment 5 Jon Jackson 2020-12-04 21:20:55 UTC
PR Pending Review

Comment 7 Yanping Zhang 2021-01-08 09:46:47 UTC
Checked on ocp 4.7 cluster with payload 4.7.0-0.nightly-2021-01-07-181010, create crd from yaml in attachment, then visit Installed Operators > Mock Operator. There is only the latest version crd for a kind crd shown in horizontal nav tabs. 
The bug is fixed.

Comment 10 errata-xmlrpc 2021-02-24 15:25:41 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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633