Bug 2033265 - Knative Services and Revisions are not shown when Service has no ownerReference
Summary: Knative Services and Revisions are not shown when Service has no ownerReference
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.10
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.9.z
Assignee: Christoph Jerolimov
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On: 2032831
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-16 11:56 UTC by OpenShift BugZilla Robot
Modified: 2022-01-31 18:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-31 18:22:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10677 0 None open [release-4.9] Bug 2033265: Fix an error to show Knative Services and Revisions also if the Service has no owner revision 2021-12-20 12:07:51 UTC
Red Hat Product Errata RHBA-2022:0279 0 None None None 2022-01-31 18:22:54 UTC

Description OpenShift BugZilla Robot 2021-12-16 11:56:14 UTC
+++ This bug was initially created as a clone of Bug #2032831 +++

Description of problem:
Knative Services and Revisions are not shown if the Service has no metadata.ownerReference attribute.

There is a browser error logged but the topology shows no error. Just the Knative services are shown just as deployments.

  ModelContext.ts:179 Unable to add some resources to topology TypeError: Cannot read properties of undefined (reading '0')
    at get-knative-resources.ts:62
    at arrayFilter (_arrayFilter.js:18)
    at Module.filter (filter.js:49)
    at getRevisions (get-knative-resources.ts:61)
    at getKnativeServingRevisions (get-knative-resources.ts:88)
    at knative-topology-utils.ts:486
    at Array.reduce (<anonymous>)
    at getKnativeServiceData (knative-topology-utils.ts:485)
    at createKnativeDeploymentItems (knative-topology-utils.ts:530)
    at knative-topology-utils.ts:1043

Version-Release number of selected component (if applicable):
4.6 shows the Service, but no Revisions in it. No error in the browser console.
4.7-4.10 shows a Deployment instead of the Service/Revision and an error in the browser console.

How reproducible:
Always on my local cluster, but don't know yet how to reproduce this.

Steps to Reproduce:
Sorry, not clear. Just have some Services without metadata.ownerReference. Tried to reproduce but wasn't lucky.

Actual results:
Error is logged in the browser console and Knative Services and Revisions entries are shown as Deployment. See attached screenshot.

Expected results:
No error in the browser console and I want to see my Knative Services and Revisions again. :)

Additional info:

Comment 4 Christoph Jerolimov 2022-01-26 11:21:23 UTC
Not clear how to reproduce this. Tested Serverless components on 4.9.0-0.ci-2022-01-26-040531 and everything works as expected.

Comment 6 errata-xmlrpc 2022-01-31 18:22:33 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 (OpenShift Container Platform 4.9.18 bug fix 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/RHBA-2022:0279


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