Bug 2032831

Summary: Knative Services and Revisions are not shown when Service has no ownerReference
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.10CC: aos-bugs, nmukherj
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-10 16:34: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:
Bug Depends On:    
Bug Blocks: 2033265    

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