Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgroup: retry rmdir up to 5 seconds on EBUSY #858

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

giuseppe
Copy link
Member

on a busy system, the conmon process could take longer to complete or
to be reaped by the parent, leaving the cgroup busy. If the rmdir
fails with EBUSY, try again up to 5 seconds before reporting an
error.

Closes: containers/podman#11946

Signed-off-by: Giuseppe Scrivano [email protected]

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

Nice catch, LGTM!

@giuseppe giuseppe force-pushed the retry-cgroup-delete branch from 8415e3d to df9a7b3 Compare December 14, 2021 15:32
on a busy system, the conmon process could take longer to complete or
to be reaped by the parent, leaving the cgroup busy.  If the rmdir
fails with EBUSY, try again up to 5 seconds before reporting an
error.

Closes: containers/podman#11946

Signed-off-by: Giuseppe Scrivano <[email protected]>
@giuseppe giuseppe force-pushed the retry-cgroup-delete branch from df9a7b3 to cd108eb Compare December 14, 2021 15:42
@rhatdan
Copy link
Member

rhatdan commented Dec 14, 2021

/lgtm
/approve
/hold

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 14, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, rhatdan

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

The pull request process is described here

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

@rhatdan
Copy link
Member

rhatdan commented Dec 14, 2021

/hold cancel

@openshift-merge-robot openshift-merge-robot merged commit 996e1c5 into containers:main Dec 14, 2021
rhatdan pushed a commit to rhatdan/common that referenced this pull request Dec 14, 2021
cgroup: retry rmdir up to 5 seconds on EBUSY
Signed-off-by: Daniel J Walsh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

podman system prune: error removing pod conmon cgroup: EBUSY
4 participants