Bug 1831808

Summary: Operand's list view - "Status" column doesn't display the latest 'status.conditions''
Product: OpenShift Container Platform Reporter: tony.wu
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, jokerman, rhamilto, yanpzhan
Target Milestone: ---   
Target Release: 4.4.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The console code is not checking condition.status before using a condition as the operand status. And it also is not making sure phase, status, or state are strings before displaying them. Consequence: The "Status" column on the operand list view doesn't display the latest status seen on the details and YAML view. Fix: Update the console code so it checks condition.status before using a condition as the operand status. And also make sure phase, status, or state are strings before displaying them. Result: The "Status" column on the operand list view displays the latest status seen on the details and YAML view.
Story Points: ---
Clone Of:
: 1831810 (view as bug list) Environment:
Last Closed: 2020-06-23 00:57:24 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: 1831810    
Bug Blocks:    
Attachments:
Description Flags
1_appsody-operator__AppsodyApplication-list-view
none
2_appsody-operator__AppsodyApplication-details-view.png
none
3_appsody-operator__AppsodyApplication-YAML-view.png none

Description tony.wu 2020-05-05 16:48:11 UTC
Created attachment 1685300 [details]
1_appsody-operator__AppsodyApplication-list-view

Description of problem:
If Operand's 'status.conditions' has an array of status, the "Status" column on Operand's list view doesn't display the latest status.

Version-Release number of selected component (if applicable):
OCP 4.4 and 4.5

How reproducible:
100%

Steps to Reproduce:
1. Go to "OperatorHub", install "Appsody" Operator (or "Cockroachdb" Operator)
2. Go to "Installed Operators" view, create "AppsodyApplication" instance (or "cockroachdb" instance)
3. Go to Operand's list view, details view, and YAML view to compare Status

Actual results:
"Status" column on the list view doesn't display the latest status seen on the details and YAML view.

Expected results:
"Status" column on the list view displays the latest status seen on the details and YAML view.


Additional info:

Comment 1 tony.wu 2020-05-05 16:48:41 UTC
Created attachment 1685301 [details]
2_appsody-operator__AppsodyApplication-details-view.png

Comment 2 tony.wu 2020-05-05 16:48:58 UTC
Created attachment 1685302 [details]
3_appsody-operator__AppsodyApplication-YAML-view.png

Comment 3 Robb Hamilton 2020-05-07 14:10:20 UTC
https://github.com/openshift/console/pull/5238 needs to merge to release-4.4 before this can be back ported.

Comment 4 Robb Hamilton 2020-05-07 15:37:21 UTC
Move to upcoming sprint as dependent changes haven't merged yet.

Comment 5 Robb Hamilton 2020-05-28 19:59:08 UTC
PR opened, awaiting cherry pick approval.

Comment 8 Yanping Zhang 2020-06-11 13:49:02 UTC
Checked on ocp 4.4 cluster with payload 4.4.0-0.nightly-2020-06-11-064343
1. Install "Appsody" Operator, create "AppsodyApplication" instance.
2. Go to Operand's list view, details view, and YAML view to compare Status.
In the "Status" column, it shows "Conditions: DependenciesSatisfied, Reconciled", which are listed on details view and yaml.

Comment 10 errata-xmlrpc 2020-06-23 00:57:24 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:2580