Bug 1668200

Summary: Search Gateway: "Unknown resource: gatewaies/networking.istio.io/v1alpha3"
Product: OpenShift Container Platform Reporter: Javier Ramirez <javier.ramirez>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.10.0CC: aos-bugs, jokerman, mmccomas, spadgett, yanpzhan
Target Milestone: ---   
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, listing Istio Gateway resources in the web console Other Resources view would cause an error. This has been fixed in the 4.0 console, where the Home -> Search view correctly shows the list of Gateway resources.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-04 10:42: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:
Attachments:
Description Flags
searchlist none

Description Javier Ramirez 2019-01-22 08:05:19 UTC
Description of problem:
When searching for "Gateway" in Resources -> Other Resources, Error is shown:
"Unknown resource: gatewaies/networking.istio.io/v1alpha3"

Version-Release number of selected component (if applicable):
OpenShift Master: v3.10.14
Kubernetes Master: v1.10.0+b81c8f8
OpenShift Web Console: v3.10.14


How reproducible:
Always

Steps to Reproduce:
1. Go to "Resources" -> "Other Resources"
2. Search for "Gateway"


Actual results:
Error Notification is shown.
No Gateways listed. Search result is "No ."


Expected results:
Should list Gateways or empty list.

Additional info:

Comment 1 Samuel Padgett 2019-01-22 14:57:05 UTC
Ideally we should avoid using kindToResource and just use the resource returned from API discovery.

Comment 2 Samuel Padgett 2019-01-22 15:03:48 UTC
This is fixed in the 4.0 console.

Comment 3 Samuel Padgett 2019-01-23 12:47:06 UTC
https://github.com/openshift/console/pull/263

Comment 5 Yanping Zhang 2019-01-29 06:00:48 UTC
registry.svc.ci.openshift.org/openshift/origin-v4.0-2019-01-28-212509@sha256   40c1d5bad78f9f98331a66c8aee098ad93bf295c245bd0501be1c6118c98cadd   40e6659c2417   12 hours ago    269 MB
console repo commit id: 3c3e54803fa9a223b1f4e817cc2c710e000414df
Checked on Search page, not all the resources items have apiversion added in dropdown list, pls refer to attachment.

Comment 6 Yanping Zhang 2019-01-29 06:01:27 UTC
Created attachment 1524469 [details]
searchlist

Comment 7 Samuel Padgett 2019-01-29 19:17:58 UTC
This is expected. We only show api group when the same resource appears in more than one api group to avoid clutter.

Comment 8 Yanping Zhang 2019-01-30 03:27:31 UTC
According to Comment 5 and Comment 7, the bug has been fixed, now only show api group when the same resource appears in more than one api group.

Comment 11 errata-xmlrpc 2019-06-04 10:42: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-2019:0758