Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mrunalp
Copy link
Member

@mrunalp mrunalp commented Feb 4, 2021

Signed-off-by: Mrunal Patel [email protected]

What type of PR is this?

/kind bug

What this PR does / why we need it:

This PR sets the systemd KillMode for container scopes to mixed
so on stop, only the main process gets the SIGTERM and is
responsible for forwarding it if needed to child processes.

Without this, we end up with double SIGTERMS leading to unexpected
failures in graceful termination on node shutdown or reboot.

Which issue(s) this PR fixes:

https://bugzilla.redhat.com/show_bug.cgi?id=1882750

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Set systemd KillMode to mixed for container scopes modifying behavior on node shutdown

@mrunalp mrunalp requested a review from runcom as a code owner February 4, 2021 00:55
@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Feb 4, 2021
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 4, 2021
@codecov
Copy link

codecov bot commented Feb 4, 2021

Codecov Report

Merging #4539 (8164338) into release-1.20 (18f4ba0) will increase coverage by 0.01%.
The diff coverage is 50.00%.

@@               Coverage Diff                @@
##           release-1.20    #4539      +/-   ##
================================================
+ Coverage         40.60%   40.62%   +0.01%     
================================================
  Files               117      117              
  Lines              9446     9450       +4     
================================================
+ Hits               3836     3839       +3     
- Misses             5177     5178       +1     
  Partials            433      433              

@mrunalp
Copy link
Member Author

mrunalp commented Feb 4, 2021

/test integration_fedora

We want systemd to only send SIGTERM to the main process
on stop and let that process forward the signal.

Today, we have seen issues where the main process forwards
the signal in addition to systemd sending it directly
leading to failures in graceful shutdown.

Signed-off-by: Mrunal Patel <[email protected]>
@mrunalp mrunalp force-pushed the systemd_killmode_mixed branch from f7f6754 to 8164338 Compare February 4, 2021 04:58
@mrunalp mrunalp changed the title WIP: Systemd killmode mixed Set systemd KillMode to mixed Feb 4, 2021
@openshift-ci-robot openshift-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Feb 4, 2021
@mrunalp mrunalp changed the title Set systemd KillMode to mixed Set systemd property KillMode to mixed for containers Feb 4, 2021
@mrunalp mrunalp changed the title Set systemd property KillMode to mixed for containers [1.20] Set systemd property KillMode to mixed for containers Feb 4, 2021
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mrunalp, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [mrunalp,saschagrunert]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@haircommander
Copy link
Member

/lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants