Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1959519

Summary: Operand details page only renders one status donut no matter how many 'podStatuses' descriptors are used
Product: OpenShift Container Platform Reporter: Jon Jackson <jonjacks>
Component: Management ConsoleAssignee: Jon Jackson <jonjacks>
Status: CLOSED ERRATA QA Contact: Yanping Zhang <yanpzhan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.8CC: aos-bugs, jokerman, periklis, yapei
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The logic used to aggregate status descriptors on operand details pages had a flaw causing only one podStatus descriptor to be used. Consequence: Only the last podStatus descriptor defined on the CSV would be rendered on operand details pages. Fix: Update the logic on the operand details page to ensure all podStatus descriptors are aggregated. Result: All podStatus descriptors are rendered as donut charts at the top of the operand details page.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:07:53 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
donuts none

Description Jon Jackson 2021-05-11 17:33:13 UTC
Description of problem:
Only one pod status donut is rendered on operand details page, no matter how many `podStatuses` descriptors are used.

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

How reproducible:
Always

Steps to Reproduce:
1. In a namespace of your choice, create crd, csv, and operand from https://gist.github.com/TheRealJon/3680c8a573bde88a974588e269230562
2. Navigate to Operators > Installed Operators > Mock Operator > Mock Resource tab > 'mock-resource-instance' details page


Actual results:
Only one "Other Statuses" donut is rendered on the details page

Expected results:
Both a "Pod Statuses" and "Other Statuses" donut should be rendered.

Comment 2 Yanping Zhang 2021-05-17 07:21:28 UTC
Checked on ocp 4.8 cluster with payload 4.8.0-0.nightly-2021-05-15-141455.
Steps to verify:
1. In a namespace of your choice, create crd, csv, and operand from https://gist.github.com/TheRealJon/3680c8a573bde88a974588e269230562
2. Navigate to Operators > Installed Operators > Mock Operator > Mock Resource tab > 'mock-resource-instance' details page. Check "Pod Statuses" and "Other Statuses", both have donut rendered.
The bug is fixed.

Comment 3 Yanping Zhang 2021-05-17 07:21:57 UTC
Created attachment 1783949 [details]
donuts

Comment 6 errata-xmlrpc 2021-07-27 23:07:53 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.8.2 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.

https://access.redhat.com/errata/RHSA-2021:2438