Bug 1795407

Summary: [Operand's Details view] Console crashed when viewing "Dynatrace OneAgent" instance details [openshift-4.3]
Product: OpenShift Container Platform Reporter: tony.wu
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, bpeterse, jokerman, yapei
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, the OpenShift console would show a blank page if an operator declared an invalid K8sResourceLink OLM descriptor. The console now tolerates incorrect K8sResourceLink descriptors.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-04 11:27:22 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:
Attachments:
Description Flags
'Dynatrace OneAgent' details view crash log
none
Operand details view none

Description tony.wu 2020-01-27 21:49:54 UTC
Created attachment 1655761 [details]
'Dynatrace OneAgent' details view crash log

Description of problem:
"Dynatrace OneAgent" instance detail view crashed (list view works fine).
Cannot access to instance details.

Version-Release number of selected component (if applicable):
4.3.0-0.ci-2020-01-21-121240

How reproducible:
Always

Steps to Reproduce:
1. Installed "Dynatrace OneAgent" Operator from 'OperatorHub' view
2. Go to 'Installed Operators' view and go to 'Dynatrace OneAgent' Operator details
3. Click "Create Instance" link on 'Dynatrace OneAgent Operator' view
4. Click "Create" CTA to create "Dynatrace OneAgent" instance
5. Click on instance's name to go to Operand's details view --> UI Crashed

Actual results:
UI Crashed (see attached screenshot)

Expected results:
Able to see instance details view


Additional info:

Comment 1 bpeterse 2020-01-28 15:44:09 UTC
Tony,

Does this exist only in 4.3 or did you find in 4.4 as well?

Comment 2 Samuel Padgett 2020-01-28 20:22:23 UTC
The spec descriptor for tolerations is incorrect. `urn:alm:descriptor:io.kubernetes:Tolerations` is telling console to link to a Tolerations resource where the descriptor path is the resource name. Instead the value at the path is an object, causing the error. We should avoid the error screen, but the descriptor in the CSV should be updated.

Comment 4 Yadan Pei 2020-02-03 09:26:48 UTC
1. cluster admin installs 'Dynatrace OneAgent Operator'
2. Operators -> Installed Operators -> Dynatrace OneAgent ->  Dynatrace OneAgent tab -> click on Create OneAgent -> Create
3. on Dynatrace OneAgent tab, click on the name oneagent, it goes to Operand's details view, see screenshot, in Tolerations field, it shows " Invalid spec descriptor: value at path 'tolerations' must be a Tolerations resource name."


Verified on     4.4.0-0.nightly-2020-02-02-225006

Comment 5 Yadan Pei 2020-02-03 09:27:44 UTC
Resources, YAML tab also can be successfully loaded

Comment 6 Yadan Pei 2020-02-03 09:28:33 UTC
Created attachment 1657310 [details]
Operand details view

Comment 8 errata-xmlrpc 2020-05-04 11:27: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, 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-2020:0581