Bug 1970011 - “managed by” link goes to the incorrect URL (unlike the correct ownerRef link)
Summary: “managed by” link goes to the incorrect URL (unlike the correct ownerRef link)
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 4.9.0
Assignee: Jon Jackson
QA Contact: Xiyun Zhao
Depends On:
TreeView+ depends on / blocked
Reported: 2021-06-09 15:50 UTC by tony.wu
Modified: 2021-10-18 17:33 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: A utility function used for matching operatator-owned resources with their owners was sometimes returning false matches. Consequence: "Managed by" links on operator-owned resource pages sometimes linked to the incorrect operator. Fix: Update the function logic to correctly match owning operators. Result: "Managed by" links now link to the correct operator.
Clone Of:
Last Closed: 2021-10-18 17:33:22 UTC
Target Upstream Version:

Attachments (Terms of Use)
screen capture - bug__managed_by.mov (18.24 MB, video/quicktime)
2021-06-09 15:50 UTC, tony.wu
no flags Details

System ID Private Priority Status Summary Last Updated
Github openshift console pull 9331 0 None open Bug 1970011: Fix edge case for "managed by" links 2021-06-23 15:21:42 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:33:39 UTC

Description tony.wu 2021-06-09 15:50:42 UTC
Created attachment 1789611 [details]
screen capture - bug__managed_by.mov

Description of problem:
“managed by” links to the incorrect URL while the ownerRef links to the correct CSV.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. install Strimzi Operator (pick a project, e.g. "default")
2. goes to “Service Accounts” list page in the same project Strimzi Operator is installed (e.g. project "default") and found "strimzi-cluster-operator" ServiceAccount object owned by Strimzi CSV
3. on the ServiceAccount details page, see “managed by” link on the header and “owner ref” link in the bottom
4. click on the “managed by” link --> check URL, and then go back to ServiceAccount details page
5. click on ownerRef link --> check URL

Actual results:
above step 4:
4. the “managed by” link goes to an incorrect URL (mixed with openshift-gitops-operator.v1.1.1  in URL):

above step 5:
5. “owner ref” link in the bottom goes to the correct URL:

Expected results:
"Managed by" link URL shouldn't mix with "openshift-gitops-operator.v1.1.1"

Additional info:

Comment 1 tony.wu 2021-06-09 15:51:18 UTC
See screen capture for details repro steps + issue.

Comment 2 Jon Jackson 2021-06-10 18:06:24 UTC
Came in late in the sprint, will address next sprint.

Comment 5 Xiyun Zhao 2021-07-12 13:04:28 UTC
This bug has been fixed and verified on build 4.9.0-0.nightly-2021-07-10-081034

Verify Step:
1. Login OCP as administrator, navigate to Operators -> OperatorHub page
2. Install Strimzi Operator on default project, waiting for operator successfully installed
2. Goes to “Service Accounts” list page, and use default project, search and found "strimzi-cluster-operator" ServiceAccount object owned by Strimzi CSV
3. On the ServiceAccount details page, see “managed by” link on the header and “owner ref” link in the bottom
4. Check and save the URL for the link of "Managed by", which on the right side of the label of "CSV" under the name of the service account 
5. Check and save the URL for the parameter of "Owner" on the ServiceAccount details page
6. Verify if Step 4 and 5 has same URL, and the content "openshift-gitops-operator.v1.1.1" is not include in it.

6. Step 4 and 5 has same URL which is point to the Detail page of Strimzi operator. The extra content "openshift-gitops-operator.v1.1.1" has been removed from ""Managed by" link.
   URL is shown as below:

Comment 8 errata-xmlrpc 2021-10-18 17:33:22 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.9.0 bug fix and 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.


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