Bug 2032831 - 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.10.0
Assignee: Christoph Jerolimov
QA Contact: spathak@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 2033265
TreeView+ depends on / blocked
 
Reported: 2021-12-15 10:07 UTC by Christoph Jerolimov
Modified: 2022-03-10 16:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:34:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10667 0 None open Bug 2032831: Fix an error to show Knative Services and Revisions also if the Service has no owner revision 2021-12-15 13:14:41 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:34:18 UTC

Description Christoph Jerolimov 2021-12-15 10:07:03 UTC
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 2 Christoph Jerolimov 2021-12-20 11:11:44 UTC
Not clear how to reproduce this. Tested Serverless components on 4.10.0-0.nightly-2021-12-16-185411 and everything works as expected.

Comment 6 errata-xmlrpc 2022-03-10 16:34: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 (Moderate: OpenShift Container Platform 4.10.3 security 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-2022:0056


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