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

Skip to content

Conversation

@haircommander
Copy link
Member

@haircommander haircommander commented Sep 16, 2020

otherwise, we leak containers in runc

Signed-off-by: Peter Hunt [email protected]

What type of PR is this?

/kind bug

What this PR does / why we need it:

cherry pick of #4201

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Fixed a bug where a container creation failure caused that container to leak in the runtime

otherwise, we leak containers in runc

Signed-off-by: Peter Hunt <[email protected]>
@openshift-ci-robot openshift-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Sep 16, 2020
@haircommander haircommander changed the title server: cleanup container in runtime after failed creation [1.17] server: cleanup container in runtime after failed creation Sep 16, 2020
@codecov
Copy link

codecov bot commented Sep 16, 2020

Codecov Report

Merging #4207 into release-1.17 will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@               Coverage Diff                @@
##           release-1.17    #4207      +/-   ##
================================================
- Coverage         44.68%   44.65%   -0.03%     
================================================
  Files                90       90              
  Lines              7698     7703       +5     
================================================
  Hits               3440     3440              
- Misses             3961     3966       +5     
  Partials            297      297              

@openshift-ci-robot
Copy link

openshift-ci-robot commented Sep 16, 2020

@haircommander: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/openshift-jenkins/integration_crun_cgroupv2 7c236f6 link /test integration_cgroupv2
ci/openshift-jenkins/e2e_crun_cgroupv2 7c236f6 link /test e2e_cgroupv2
Details

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. I understand the commands that are listed here.

if retErr != nil {
log.Infof(ctx, "createCtr: removing container ID %s from runtime", containerID)
if err2 := s.Runtime().DeleteContainer(container); err2 != nil {
log.Warnf(ctx, "failed to delete container in runtime %s: %v", containerID, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd pref, the below, YMMV:

Suggested change
log.Warnf(ctx, "failed to delete container in runtime %s: %v", containerID, err)
log.Warnf(ctx, "failed to delete container %s in runtime: %v", containerID, err)

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, 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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 16, 2020
@mrunalp
Copy link
Member

mrunalp commented Sep 16, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 16, 2020
@openshift-merge-robot openshift-merge-robot merged commit 365b42a into cri-o:release-1.17 Sep 16, 2020
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. kind/bug Categorizes issue or PR as related to a bug. 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