Bug 1746924
| Summary: | Status and Reason not set correctly for network-operator | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Lili Cosic <lcosic> |
| Component: | Networking | Assignee: | Casey Callendrello <cdc> |
| Networking sub component: | openshift-sdn | QA Contact: | zhaozhanqi <zzhao> |
| Status: | CLOSED NEXTRELEASE | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | aos-bugs, bbennett |
| Version: | 4.1.z | ||
| Target Milestone: | --- | ||
| Target Release: | 4.3.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-11-22 14:14:14 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: | |||
|
Description
Lili Cosic
2019-08-29 14:09:20 UTC
Yeah, we naively translate the status of the daemonset. We should probably have some sort of timeout that detects when a rollout is hung. Do you know if there are any best practices for this? I could see this varying based on, say, the size of the cluster. A one-at-a-time daeomset rollout will take a long time on a lot of nodes. Not sure timeout is the right approach here. I would suggest on every reconcile error in your operator to set the Status to Degraded and the Reason to a predefined error, something like "DaemonsetMultusError" whenever one of the Daemonsets or any other Resources gets an error. I assume you check the desired number of your Resources with the current number of Resources and there you can detect the error. You can look at how other operators set their Reason as well. Note: the Reason string should be a predefined, bound list of messages, so we do not produce high cardinality metrics. |