Bug 1926484 - API server exits non-zero on 2 SIGTERM signals
Summary: API server exits non-zero on 2 SIGTERM signals
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: kube-apiserver
Version: 4.7
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: ---
: 4.8.0
Assignee: Stefan Schimanski
QA Contact: Mike Fiedler
URL:
Whiteboard:
Depends On:
Blocks: 1927500
TreeView+ depends on / blocked
 
Reported: 2021-02-08 21:09 UTC by Mrunal Patel
Modified: 2021-07-27 22:43 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1927500 (view as bug list)
Environment:
Last Closed: 2021-07-27 22:42:29 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift kubernetes pull 558 0 None closed Bug 1926484: UPSTREAM: <carry>: kube-apiserver: ignore SIGTERM/INT after the first one 2021-02-22 00:09:49 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 22:43:31 UTC

Description Mrunal Patel 2021-02-08 21:09:16 UTC
Description of problem:
API server exits immediately if it received 2 SIGTERMs.
 We use systemd scopes for containers in OpenShift today and they don't support mixed mode (See https://bugzilla.redhat.com/show_bug.cgi?id=1925623). So, to make sure that the API server can gracefully shutdown, we need to make it resilient to multiple SIGTERMs during reboot/shutdown.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. 
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 W. Trevor King 2021-02-10 21:02:54 UTC
Bug 1927500 is blocker+ for 4.7.0, so this will have to land before 4.8 to avoid regressing.  Pretty sure that won't be a problem, but setting blocker+ here just to remove the question and hopefully save someone else a minute of process-time ;).

Comment 4 Petr Muller 2021-02-11 12:44:22 UTC
Sorry, I did not mention which test I mean, and this bug does not mention it: [sig-api-machinery][Feature:APIServer][Late] kubelet terminates kube-apiserver gracefully [Suite:openshift/conformance/parallel]

I got here via https://bugzilla.redhat.com/show_bug.cgi?id=1882750#c62 which says this is the proper bug that tracks this.

Comment 5 Mike Fiedler 2021-02-11 19:13:38 UTC
Verified on 4.8.0-0.ci-2021-02-11-165522

On 4.7:  first SIGTERM to kube-apiserver starts shutdown, second SIGTERM kills it.

On 4.8:  first SIGTERM starts shutdown, second SIGTERM is ignored and shutdown continues.

Comment 8 errata-xmlrpc 2021-07-27 22:42:29 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.8.2 bug fix and security 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:2438


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