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

Bug 1974603

Summary: clusteroperators table output does omit condition messages
Product: OpenShift Container Platform Reporter: Stefan Schimanski <sttts>
Component: kube-apiserverAssignee: Stefan Schimanski <sttts>
Status: CLOSED ERRATA QA Contact: Ke Wang <kewang>
Severity: high Docs Contact:
Priority: high    
Version: 4.9CC: aos-bugs, mfojtik, xxia
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1974604 (view as bug list) Environment:
Last Closed: 2021-10-18 17:35:54 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:    
Bug Blocks: 1974604    

Description Stefan Schimanski 2021-06-22 07:23:57 UTC
The output of 

  oc get clusteroperators

used by customers, support and engineering when reporting problems of the cluster does omit the condition messages, which give a hint of the root cause of a degraded or unavailable operator. Hence, ever single time we have to ask for more information or at least dig deep into multi hundred MB must-gather.

Comment 2 Ke Wang 2021-07-02 03:29:21 UTC
$ oc get clusterversion
NAME      VERSION                             AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.9.0-0.nightly-2021-07-01-200539   True        False         37m     Cluster version is 4.9.0-0.nightly-2021-07-01-200539

$ oc get clusteroperators
NAME                                       VERSION                             AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
authentication                             4.9.0-0.nightly-2021-07-01-200539   True        False         False      39m     
baremetal                                  4.9.0-0.nightly-2021-07-01-200539   True        False         False      63m     
cloud-credential                           4.9.0-0.nightly-2021-07-01-200539   True        False         False      66m     
cluster-autoscaler                         4.9.0-0.nightly-2021-07-01-200539   True        False         False      63m     
config-operator                            4.9.0-0.nightly-2021-07-01-200539   True        False         False      65m     
console                                    4.9.0-0.nightly-2021-07-01-200539   True        False         False      52m     
csi-snapshot-controller                    4.9.0-0.nightly-2021-07-01-200539   True        False         False      65m     
dns                                        4.9.0-0.nightly-2021-07-01-200539   True        False         False      63m     
etcd                                       4.9.0-0.nightly-2021-07-01-200539   True        False         False      63m     
image-registry                             4.9.0-0.nightly-2021-07-01-200539   True        False         False      59m     
ingress                                    4.9.0-0.nightly-2021-07-01-200539   True        False         False      58m     
insights                                   4.9.0-0.nightly-2021-07-01-200539   True        False         False      57m     
kube-apiserver                             4.9.0-0.nightly-2021-07-01-200539   True        False         False      62m     
kube-controller-manager                    4.9.0-0.nightly-2021-07-01-200539   True        False         False      63m     
kube-scheduler                             4.9.0-0.nightly-2021-07-01-200539   True        False         False      63m     
kube-storage-version-migrator              4.9.0-0.nightly-2021-07-01-200539   True        False         False      63m     
machine-api                                4.9.0-0.nightly-2021-07-01-200539   True        False         False      60m     
machine-approver                           4.9.0-0.nightly-2021-07-01-200539   True        False         False      64m     
machine-config                             4.9.0-0.nightly-2021-07-01-200539   True        False         False      63m     
marketplace                                4.9.0-0.nightly-2021-07-01-200539   True        False         False      64m     
monitoring                                 4.9.0-0.nightly-2021-07-01-200539   True        False         False      58m     
network                                    4.9.0-0.nightly-2021-07-01-200539   True        False         False      65m     
node-tuning                                4.9.0-0.nightly-2021-07-01-200539   True        False         False      64m     
openshift-apiserver                        4.9.0-0.nightly-2021-07-01-200539   True        False         False      61m     
openshift-controller-manager               4.9.0-0.nightly-2021-07-01-200539   True        False         False      64m     
openshift-samples                          4.9.0-0.nightly-2021-07-01-200539   True        False         False      61m     
operator-lifecycle-manager                 4.9.0-0.nightly-2021-07-01-200539   True        False         False      64m     
operator-lifecycle-manager-catalog         4.9.0-0.nightly-2021-07-01-200539   True        False         False      64m     
operator-lifecycle-manager-packageserver   4.9.0-0.nightly-2021-07-01-200539   True        False         False      61m     
service-ca                                 4.9.0-0.nightly-2021-07-01-200539   True        False         False      65m     
storage                                    4.9.0-0.nightly-2021-07-01-200539   True        False         False      61m     

Forced kube-apiserver operator to retry roll out,
$ oc patch kubeapiservers/cluster --type=json -p '[ {"op": "replace", "path": "/spec/forceRedeploymentReason", "value": "just a forced test01" } ]'


$ oc get co | grep -v '.True.*False.*False'
NAME                                       VERSION                             AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
kube-apiserver                             4.9.0-0.nightly-2021-07-01-200539   True        True          False      69m     NodeInstallerProgressing: 3 nodes are at revision 6; 0 nodes have achieved new revision 7

From above, we can see the output of `oc get clusteroperators` gives a hint of the root cause of a degraded kube-apiserver operator, as expected, move the bug VERIFIED.

Comment 5 errata-xmlrpc 2021-10-18 17:35:54 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.

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