Bug 1961557

Summary: [release-4.7] respect the shutdown-delay-duration from OpenShiftAPIServerConfig
Product: OpenShift Container Platform Reporter: Lukasz Szaszkiewicz <lszaszki>
Component: openshift-apiserverAssignee: Lukasz Szaszkiewicz <lszaszki>
Status: CLOSED ERRATA QA Contact: Xingxing Xia <xxia>
Severity: high Docs Contact:
Priority: high    
Version: 4.7CC: aos-bugs, mfojtik, xxia
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1961554 Environment:
Last Closed: 2021-06-15 09:28:05 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: 1961554    
Bug Blocks:    

Description Lukasz Szaszkiewicz 2021-05-18 09:12:22 UTC
+++ This bug was initially created as a clone of Bug #1961554 +++

ShutdownDelayDuration allows for blocking shut down for some time, e.g. until endpoints pointing to this API server have converged on all nodes. 

During this time, the API server keeps serving, /healthz will return 200, but /readyz will return failure. This is important for the graceful shutdown.

Previously the OpenShiftAPI server didn't respect this setting and could have caused some interruption to clients's requests.

--- Additional comment from Lukasz Szaszkiewicz on 2021-05-18 09:11:31 UTC ---

I think the best way to test it is to change the value manually to some high number and then trigger termination. The server should shut down after the specified time.

Comment 3 Xingxing Xia 2021-06-03 05:32:59 UTC
Verified in 4.7.0-0.nightly-2021-06-02-233051 env with steps of bug 1961554#c4 ~ 7, got same result.

Comment 4 Siddharth Sharma 2021-06-04 18:39:59 UTC
This bug will be shipped as part of next z-stream release 4.7.15 on June 14th, as 4.7.14 was dropped due to a regression https://bugzilla.redhat.com/show_bug.cgi?id=1967614

Comment 8 errata-xmlrpc 2021-06-15 09:28:05 UTC
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 (Moderate: OpenShift Container Platform 4.7.16 security and bug fix update), 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/RHSA-2021:2286