-
Notifications
You must be signed in to change notification settings - Fork 39.4k
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
Automated cherry pick of #90377: Fix exclusive CPU allocations being deleted at container #90530
Automated cherry pick of #90377: Fix exclusive CPU allocations being deleted at container #90530
Conversation
The expectation is that exclusive CPU allocations happen at pod creation time. When a container restarts, it should not have its exclusive CPU allocations removed, and it should not need to re-allocate CPUs. There are a few places in the current code that look for containers that have exited and call CpuManager.RemoveContainer() to clean up the container. This will end up deleting any exclusive CPU allocations for that container, and if the container restarts within the same pod it will end up using the default cpuset rather than what should be exclusive CPUs. Removing those calls and adding resource cleanup at allocation time should get rid of the problem. Signed-off-by: Chris Friesen <chris.friesen@windriver.com>
|
/kind bug |
|
/cc @kubernetes/patch-release-team This PR fixes a regression in the CPUManager introduced as part of the 1.18 release. |
|
/priority important-soon |
|
/kind regression |
|
Is there anything more that needs to be done from my side to make sure this is included in the next patch release? |
|
/cc @kubernetes/patch-release-team Looks like we missed the patch release today because this never got the cherry-pick approval label. Could someone please tell me what is left to do to make sure this makes it into the next patch release. |
|
@klueska: you cannot LGTM your own PR. In response to this:
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. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: derekwaynecarr, klueska 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 |
Cherry pick of #90377 on release-1.18.
#90377: Fix exclusive CPU allocations being deleted at container
For details on the cherry pick process, see the cherry pick requests page.