Bug 1803746
| Summary: | Improve NodeControllerDegraded condition messages | |||
|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Michal Fojtik <mfojtik> | |
| Component: | kube-apiserver | Assignee: | Michal Fojtik <mfojtik> | |
| Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 4.4 | CC: | aos-bugs, mfojtik | |
| Target Milestone: | --- | |||
| Target Release: | 4.4.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Enhancement | ||
| Doc Text: |
Feature: Improve NodeControllerDegraded operator condition messages to include the proper reason why the nodes are considered not ready.
Reason: In past, when the node controller see unready node, it only reports that fact, without giving any details of why they are degraded.
Result: With this change, the detailed message is include per node, describing the reason why are they degraded (networking, disk pressure, etc.)
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1803748 (view as bug list) | Environment: | ||
| Last Closed: | 2020-05-13 21:58:07 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: | 1803748, 1803750 | |||
|
Description
Michal Fojtik
2020-02-17 11:02:06 UTC
Verified in 4.4.0-0.nightly-2020-02-16-221315
oc get no
...
ip-10-0-143-9.ap-northeast-1.compute.internal Ready master 9h v1.17.1
...
# shutdown a master to let it displays NotReady
oc debug no/ip-10-0-143-9.ap-northeast-1.compute.internal -- chroot /host shutdown -h now
Starting pod/ip-10-0-143-9ap-northeast-1computeinternal-debug ...
To use host binaries, run `chroot /host`
^C
oc get no
...
ip-10-0-143-9.ap-northeast-1.compute.internal NotReady master 9h v1.17.1
...
# check NodeControllerDegraded has time, reason and message from node YAML
oc get kubeapiserver cluster -o yaml
...
conditions:
- lastTransitionTime: "2020-02-17T12:41:25Z"
message: 'The master nodes not ready: node "ip-10-0-143-9.ap-northeast-1.compute.internal"
not ready since 2020-02-17 12:41:25 +0000 UTC because NodeStatusUnknown (Kubelet
stopped posting node status.)'
reason: MasterNodesReady
status: "True"
type: NodeControllerDegraded
oc get co/kube-apiserver -o yaml
...
conditions:
- lastTransitionTime: "2020-02-17T12:43:43Z"
message: 'NodeControllerDegraded: The master nodes not ready: node "ip-10-0-143-9.ap-northeast-1.compute.internal"
not ready since 2020-02-17 12:41:25 +0000 UTC because NodeStatusUnknown (Kubelet
stopped posting node status.)'
reason: NodeController_MasterNodesReady
status: "True"
type: Degraded
oc get no ip-10-0-143-9.ap-northeast-1.compute.internal -o yaml
...
- lastHeartbeatTime: "2020-02-17T12:39:10Z"
lastTransitionTime: "2020-02-17T12:41:25Z"
message: Kubelet stopped posting node status.
reason: NodeStatusUnknown
status: Unknown
type: Ready
...
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:0581 |