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

Skip to content

Conversation

@mrunalp
Copy link
Member

@mrunalp mrunalp commented Feb 4, 2021

What type of PR is this?

/kind bug

What this PR does / why we need it:

conmon forwards the SIGTERM to the main container process.
This is undesirable during node shutdown as it results in
the container receving 2 SIGTERMs. With this change, conmon
ignores the SIGPIPE and will exit after the main container
process dies. If it doesn't for some reason, then
it gets SIGKILL by systemd after 90 seconds.

We need a follow-on to adjust the 90s to a value higher
than the termination grace period as a follow on. This doesn't
matter today as we don't retain container state on reboot.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Set conmon scope KillSignal to SIGPIPE

@mrunalp mrunalp requested a review from runcom as a code owner February 4, 2021 22:32
@openshift-ci-robot openshift-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. 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
@mrunalp mrunalp force-pushed the conmon_killsignal_pipe branch from 606ffb9 to c173202 Compare February 4, 2021 22:35
@codecov
Copy link

codecov bot commented Feb 4, 2021

Codecov Report

Merging #4546 (fe6afdb) into release-1.20 (2ef6415) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@               Coverage Diff                @@
##           release-1.20    #4546      +/-   ##
================================================
+ Coverage         40.62%   40.64%   +0.01%     
================================================
  Files               117      117              
  Lines              9450     9453       +3     
================================================
+ Hits               3839     3842       +3     
  Misses             5178     5178              
  Partials            433      433              

conmon forwards the SIGTERM to the main container process.
This is undesirable during node shutdown as it results in
the container receving 2 SIGTERMs. With this change, conmon
ignores the SIGPIPE and will exit after the main container
process dies. If it doesn't for some reason, then
it gets SIGKILL by systemd after 90 seconds.

We need a follow-on to adjust the 90s to a value higher
than the termination grace period as a follow on. This doesn't
matter today as we don't retain container state on reboot.

Signed-off-by: Mrunal Patel <[email protected]>
@mrunalp mrunalp force-pushed the conmon_killsignal_pipe branch from c173202 to fe6afdb Compare February 4, 2021 22:53
@mrunalp
Copy link
Member Author

mrunalp commented Feb 4, 2021

/test integration_crun

1 similar comment
@mrunalp
Copy link
Member Author

mrunalp commented Feb 5, 2021

/test integration_crun

@mrunalp
Copy link
Member Author

mrunalp commented Feb 5, 2021

/test e2e-aws

Copy link
Collaborator

@kolyshkin kolyshkin 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: kolyshkin, mrunalp

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:

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

@mrunalp
Copy link
Member Author

mrunalp commented Feb 5, 2021

/test integration_crun

@haircommander
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 5, 2021
@openshift-merge-robot openshift-merge-robot merged commit 78527db into cri-o:release-1.20 Feb 5, 2021
@haircommander
Copy link
Member

/cherry-pick master

@openshift-cherrypick-robot

@haircommander: new pull request created: #4560

Details

In response to this:

/cherry-pick master

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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.

6 participants