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.
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:
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.
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
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: