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

Fixing a small bug with GMSA support #74737

Merged
merged 2 commits into from
Mar 6, 2019

Conversation

wk8
Copy link
Contributor

@wk8 wk8 commented Feb 28, 2019

What type of PR is this?
/kind bug

What this PR does / why we need it:

A previous PR (#73726)
added GMSA support to the dockershim. Unfortunately, there was a
bug in there: the registry keys used to pass the cred specs down
to Docker were being cleaned up too early, right after the containers'
creation - before Docker would ever try to read them, when trying to
actually start the container.

This patch fixes this.

An e2e test is also provided in a separate PR (#74738)

Does this PR introduce a user-facing change?:

NONE

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 28, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @wk8. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added area/kubelet sig/node Categorizes an issue or PR as relevant to SIG Node. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Feb 28, 2019
@ddebroy
Copy link
Member

ddebroy commented Feb 28, 2019

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 28, 2019
A previous PR (kubernetes#73726)
added GMSA support to the dockershim. Unfortunately, there was a
bug in there: the registry keys used to pass the cred specs down
to Docker were being cleaned up too early, right after the containers'
creation - before Docker would ever try to read them, when trying to
actually start the container.

This patch fixes this.

An e2e test is also provided in a separate PR.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
@wk8 wk8 force-pushed the wk8/gmsa_bug_fix branch from 9bfd260 to 1908a0c Compare February 28, 2019 18:27
@ddebroy
Copy link
Member

ddebroy commented Feb 28, 2019

/assign @yujuhong @michmike

@ddebroy
Copy link
Member

ddebroy commented Feb 28, 2019

/sig windows

@k8s-ci-robot k8s-ci-robot added the sig/windows Categorizes an issue or PR as relevant to SIG Windows. label Feb 28, 2019
@ddebroy
Copy link
Member

ddebroy commented Feb 28, 2019

/test pull-kubernetes-e2e-gce-100-performance

@michmike
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 28, 2019
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 2, 2019
@wk8
Copy link
Contributor Author

wk8 commented Mar 2, 2019

@yujuhong @michmike @derekwaynecarr : thanks a lot for the reviews. Addressed your comments. Could you please have another look?

@michmike
Copy link
Contributor

michmike commented Mar 2, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 2, 2019
@michmike
Copy link
Contributor

michmike commented Mar 5, 2019

/assign @derekwaynecarr
can you PTAL

@yujuhong
Copy link
Contributor

yujuhong commented Mar 5, 2019

/lgtm

Leaving the approval for @derekwaynecarr

@derekwaynecarr
Copy link
Member

thank you for the clarifications.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: derekwaynecarr, wk8

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 6, 2019
@michmike
Copy link
Contributor

michmike commented Mar 6, 2019

/milestone v1.14

@k8s-ci-robot k8s-ci-robot added this to the v1.14 milestone Mar 6, 2019
@k8s-ci-robot k8s-ci-robot merged commit 752f566 into kubernetes:master Mar 6, 2019
wk8 added a commit to wk8/kubernetes that referenced this pull request Mar 7, 2019
This patch is adding an e2e on the Windows GMSA support added in
kubernetes#73726 and
kubernetes#74737.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
wk8 added a commit to wk8/kubernetes that referenced this pull request May 14, 2019
kubernetes#74737 introduced a new in-memory
map for the dockershim, that could potentially (in pathological cases) cause
memory leaks - for containers that use GMSA cred specs, get created
successfully, but then never get started nor removed.

This patch adds a new goroutine in the dockershim that periodically cleans
up stale `containerCleanupInfos`.

Resolves issue kubernetes#74843.

Added unit tests.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
wk8 added a commit to wk8/kubernetes that referenced this pull request Aug 5, 2019
kubernetes#74737 introduced a new in-memory
map for the dockershim, that could potentially (in pathological cases) cause
memory leaks - for containers that use GMSA cred specs, get created
successfully, but then never get started nor removed.

This patch adds a new goroutine in the dockershim that periodically cleans
up stale `containerCleanupInfos`.

Resolves issue kubernetes#74843.

Added unit tests.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
wk8 added a commit to wk8/kubernetes that referenced this pull request Aug 23, 2019
kubernetes#74737 introduced a new in-memory
map for the dockershim, that could potentially (in pathological cases) cause
memory leaks - for containers that use GMSA cred specs, get created
successfully, but then never get started nor removed.

This patch addresses this issue by making container removal fail altogether
when platform-specific clean ups fail: this allows clean ups to be retried
later, when the kubelet attempts to remove the container again.

Resolves issue kubernetes#74843.

Signed-off-by: Jean Rouge <rougej+github@gmail.com>
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. area/kubelet cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/windows Categorizes an issue or PR as relevant to SIG Windows. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants