-
Notifications
You must be signed in to change notification settings - Fork 1.1k
pkg/container: fix container device GID fallback. #5548
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
pkg/container: fix container device GID fallback. #5548
Conversation
Pass host side GID, not UID, as fallback GID to getDeviceUserGroupID(). Signed-off-by: Krisztian Litkey <[email protected]>
|
Hi @klihub. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
@mythi PTAL |
Codecov Report
@@ Coverage Diff @@
## main #5548 +/- ##
=======================================
Coverage 43.17% 43.17%
=======================================
Files 123 123
Lines 12173 12173
=======================================
Hits 5256 5256
Misses 6414 6414
Partials 503 503 |
mythi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@klihub thanks a lot! LGTM
giuseppe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, klihub, mythi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/ok-to-test thanks @klihub ! |
|
@klihub: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixes in some cases incorrectly chosen device node group ID in containers.
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Pass host side GID, not UID, as fallback GID to getDeviceUserGroupID().
Update the corresponding unit tests to trigger/catch the original bug.
Does this PR introduce a user-facing change?