Bug 1741071
| Summary: | [4.1.z]storage clusteroperator degraded reporting missing reason/detail information | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Junqi Zhao <juzhao> |
| Component: | Storage | Assignee: | Christian Huffman <chuffman> |
| Status: | CLOSED ERRATA | QA Contact: | Qin Ping <piqin> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.1.z | CC: | aos-bugs, aos-storage-staff, bchilds, ecordell, jfan, piqin |
| Target Milestone: | --- | ||
| Target Release: | 4.2.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1741062 | Environment: | |
| Last Closed: | 2019-10-16 06:35:53 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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
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 |
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.