Bug 1741071 - [4.1.z]storage clusteroperator degraded reporting missing reason/detail information
Summary: [4.1.z]storage clusteroperator degraded reporting missing reason/detail infor...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Storage
Version: 4.1.z
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.2.0
Assignee: Christian Huffman
QA Contact: Qin Ping
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-14 08:05 UTC by Junqi Zhao
Modified: 2019-10-16 06:36 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1741062
Environment:
Last Closed: 2019-10-16 06:35:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2922 0 None None None 2019-10-16 06:36:06 UTC

Comment 1 Christian Huffman 2019-08-22 18:18:47 UTC
I believe we already define a Reason if the operator encounters an error. See the following from the cluster storage operator. This is in release-4.1 and subsequent versions:

 	// if error is anything other than unsupported platform, we are degraded
	if err != nil {
		if err != unsupportedPlatformError {
			degraded := configv1.ClusterOperatorStatusCondition{
				Type:    configv1.OperatorDegraded,
				Status:  configv1.ConditionTrue,
				Reason:  "Error",
				Message: err.Error(),
			}

I have submitted https://github.com/openshift/cluster-storage-operator/pull/46 to include default Reason strings on the other statuses.

Comment 6 Qin Ping 2019-08-27 05:49:52 UTC
Verified with:  4.2.0-0.nightly-2019-08-26-202352

$ oc get co storage
NAME      VERSION                             AVAILABLE   PROGRESSING   DEGRADED   SINCE
storage   4.2.0-0.nightly-2019-08-26-202352   False       False         True       56s

$ oc describe co storage|grep Degraded -B 5
    Type:                  Available
    Last Transition Time:  2019-08-27T05:47:36Z
    Message:               storageclasses.storage.k8s.io is forbidden: User "system:serviceaccount:openshift-cluster-storage-operator:cluster-storage-operator" cannot create resource "storageclasses" in API group "storage.k8s.io" at the cluster scope
    Reason:                Error
    Status:                True
    Type:                  Degraded

Comment 7 errata-xmlrpc 2019-10-16 06:35: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, 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-2019:2922


Note You need to log in before you can comment on or make changes to this bug.