Bug 1829584
Summary: | Ingress operator should log the reason when an IngressController is in degraded state | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Miciah Dashiel Butler Masters <mmasters> |
Component: | Networking | Assignee: | Miciah Dashiel Butler Masters <mmasters> |
Networking sub component: | router | QA Contact: | Arvind iyengar <aiyengar> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | aiyengar, aos-bugs, bbennett, dhansen, mmasters, rgregory, tsmetana, zzhao |
Version: | 4.5 | ||
Target Milestone: | --- | ||
Target Release: | 4.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1827152 | Environment: | |
Last Closed: | 2020-07-13 17:32:51 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: |
Description
Miciah Dashiel Butler Masters
2020-04-29 20:08:46 UTC
I plan to make a PR to repeat the status condition message in the log message. I hit the same issue today while I was testing changes on a locally running ingress operator: 2020-05-13T16:56:06.575-0700 ERROR operator.ingress_controller ingress/controller.go:209 got retryable error; requeueing {"after": "1m0s", "error": "IngressController is degraded"} This feature has been tested in "4.5.0-0.nightly-2020-05-14-190315" which has the code patch from the PR merge. With this fix, we could see additional details/flags being added when the ingress goes in degraded state: * log Excerpt from patched version: ----- 2020-05-18T10:34:35.328Z INFO operator.status_controller status/controller.go:90 Reconciling {"request": "openshift-ingress-operator/internalapps5"} 2020-05-18T10:34:35.346Z DEBUG operator.init.controller-runtime.controller controller/controller.go:282 Successfully Reconciled {"controller": "status_controller", "request": "openshift-ingress-operator/internalapps5"} 2020-05-18T10:34:35.428Z INFO operator.ingress_controller ingress/deployment.go:805 updated router deployment {"namespace": "openshift-ingress", "name": "router-internalapps5"} 2020-05-18T10:34:35.563Z INFO operator.status_controller status/controller.go:90 Reconciling {"request": "openshift-ingress-operator/internalapps5"} 2020-05-18T10:34:35.572Z ERROR operator.ingress_controller ingress/controller.go:209 got retryable error; requeueing {"after": "29.999979646s", "error": "IngressController may become degraded soon: DeploymentDegraded=True, LoadBalancerReady=False"} <------ 2020-05-18T10:35:08.058Z DEBUG operator.init.controller-runtime.controller controller/controller.go:282 Successfully Reconciled {"controller": "status_controller", "request": "openshift-ingress-operator/internalapps5"} 2020-05-18T10:35:08.112Z INFO operator.ingress_controller ingress/deployment.go:805 updated router deployment {"namespace": "openshift-ingress", "name": "router-internalapps5"} 2020-05-18T10:35:08.194Z ERROR operator.ingress_controller ingress/controller.go:209 got retryable error; requeueing {"after": "1m0s", "error": "IngressController is degraded: DNSReady=False"} <------- 2020-05-18T10:35:08.194Z INFO operator.ingress_controller ingress/controller.go:142 reconciling {"request": "openshift-ingress-operator/internalapps5"} ----- * Logs excerpts from unpatched version: ----- 2020-05-18T10:34:48.928Z INFO operator.ingress_controller ingress/metrics.go:30 created router stats secret {"namespace": "openshift-ingress", "name": "router-stats-internalapps5"} 2020-05-18T10:34:48.965Z INFO operator.ingress_controller ingress/monitoring.go:36 created servicemonitor {"namespace": "openshift-ingress", "name": "router-internalapps5"} 2020-05-18T10:34:48.997Z ERROR operator.ingress_controller ingress/controller.go:209 got retryable error; requeueing {"after": "29.999981532s", "error": "IngressController may become degraded soon"} <--- 2020-05-18T10:35:22.064Z DEBUG operator.init.controller-runtime.controller controller/controller.go:282 Successfully Reconciled {"controller": "status_controller", "request": "openshift-ingress-operator/internalapps5"} 2020-05-18T10:35:22.106Z INFO operator.ingress_controller ingress/deployment.go:805 updated router deployment {"namespace": "openshift-ingress", "name": "router-internalapps5"} 2020-05-18T10:35:22.167Z ERROR operator.ingress_controller ingress/controller.go:209 got retryable error; requeueing {"after": "1m0s", "error": "IngressController is 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-2020:2409 |