Bug 1760810

Summary: admin console overview sidebar showing wrong resources when serverless installed
Product: OpenShift Container Platform Reporter: spathak <spathak>
Component: Dev ConsoleAssignee: cvogt
Status: CLOSED ERRATA QA Contact: Ruchir Garg <rgarg>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, jakumar, jowilson, nmukherj
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: In Overview, we are consuming sidebar resources via extension utils and first check is if knative CRDs are present then check is based on the key as in knative specific resources "configurations" and in current code, issue was even if knative resources were not present but utils returned { configurations: [] }. The non-admin user won't even be able to view workloads under-console as firehose fetches knative specific resources and results in 403 Consequence: For kubeadmin in case of normal deployments and as in sidebar it identifies configurations and knative operator is installed so treated it as knative resource i.e configurations, Revisions, routes. For the non-admin user, it shows Permission issue if user tries to view workloads in console Fix: with added check in case of no configurations found will return undefined, so will not add any knative specific resources in overviewitems. For fetching resources via firehose add key "option:true" to make it non required Result: Overview sidebar resources work as expected in case of normal deployment and knative specific deployment. A non-admin user can view the workloads.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-23 11:07:15 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:

Description spathak@redhat.com 2019-10-11 11:47:38 UTC
Description of problem:
Even though the deployment selected in the workloads view is not a knative workload, the sidebar is showing the resource list for knative resources.

This can be observed by going to the openshift-console project -> workloads tab. Then click on the first deployment.  This is working correctly in dev console topology.

How reproducible:

Steps to Reproduce:
1.Login as non-admin in console go to projects
2.Click on workloads
3.Click on the first deployment

Actual results:
No services, no routes, no pods for non-serverless workload

Expected results:
Service, routes, pods information should be shown

Additional info:

Comment 1 cvogt 2019-11-05 15:16:00 UTC
Fixed by https://bugzilla.redhat.com/show_bug.cgi?id=1758628

Comment 3 errata-xmlrpc 2020-01-23 11:07:15 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.