Bug 1961557 - [release-4.7] respect the shutdown-delay-duration from OpenShiftAPIServerConfig
Summary: [release-4.7] respect the shutdown-delay-duration from OpenShiftAPIServerConfig
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: openshift-apiserver
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.7.z
Assignee: Lukasz Szaszkiewicz
QA Contact: Xingxing Xia
URL:
Whiteboard:
Depends On: 1961554
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-18 09:12 UTC by Lukasz Szaszkiewicz
Modified: 2021-06-15 09:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1961554
Environment:
Last Closed: 2021-06-15 09:28:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-apiserver pull 199 0 None open Bug 1961557: sets shutdown-delay-duration from OpenShiftAPIServerConfig 2021-05-27 01:00:40 UTC
Red Hat Product Errata RHSA-2021:2286 0 None None None 2021-06-15 09:28:33 UTC

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


Note You need to log in before you can comment on or make changes to this bug.