Bug 1811202
Summary: | /readyz should start reporting failure on shutdown initiation | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Abu Kashem <akashem> | |
Component: | openshift-apiserver | Assignee: | Abu Kashem <akashem> | |
Status: | CLOSED ERRATA | QA Contact: | Ke Wang <kewang> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 4.4 | CC: | aos-bugs, kewang, mfojtik, sttts, xxia | |
Target Milestone: | --- | |||
Target Release: | 4.4.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | 1811169 | |||
: | 1811801 (view as bug list) | Environment: | ||
Last Closed: | 2020-05-04 11:45:36 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: | ||||
Bug Depends On: | 1811801 | |||
Bug Blocks: | 1821500, 1821502, 1821503 |
Description
Abu Kashem
2020-03-06 20:15:08 UTC
This is to take the upstream patch https://github.com/kubernetes/kubernetes/pull/88911 into openshift apiserver. See: https://github.com/openshift/openshift-apiserver/pull/81 Verified with OCP 4.4.0-0.nightly-2020-03-18-102708 env, checked below. $ oc -n openshift-apiserver get po -o wide # get pod IP apiserver-74d496b787-b5s8v 1/1 Running 7 154m 10.....40 ip-10-...-193.us-east-2.compute.internal ... In one terminal, enter into master $ oc debug no/ip-10-..-..-193.us-east-2.compute.internal Starting pod/ip-10-.-..-193us-east-2computeinternal-debug ... To use host binaries, run `chroot /host` Pod IP: 10...193 If you don't see a command prompt, try pressing enter. sh-4.2# chroot /host sh-4.4# while true; do curl -k --silent --show-error https://10.....40:8443/readyz ; done |& tee /tmp/ke.log okokokokokokokokokokokokokokokokokokokokokokokokokokokokokok In another terminal, $ oc rsh ip-10-...-193us-east-2computeinternal-debug sh-4.2# chroot /host sh-4.4# ps aux | grep "openshift-apiserver start" root 325696 2.1 1.1 567144 196100 ? Ssl 05:26 0:14 openshift-apiserver start --config=/var/run/configmaps/config/config.yaml -v=2 sh-4.4# kill -INT 325696 In the first terminal, check the output, after above kill, can immediately see: curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 10...40:8443 curl: (7) Failed to connect to 10.128.0.40 port 8443: Connection refused curl: (7) Failed to connect to 10.128.0.40 port 8443: Connection refused ... The endpoint of readyz will start returning failure as soon as openshift-apiserver shutdown is initiated, detects that /readyz is red. 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 |