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 #90554: kubelet: fix /stats/summary
endpoint on Windows when
#91103
Automated cherry pick of #90554: kubelet: fix /stats/summary
endpoint on Windows when
#91103
Conversation
…s are present on the node Following changes in kubernetes#87730, Kubelet is directly hcsshim to gather stats. However, unlike `docker stats` API that was used before, hcsshim does not keep information about exited containers. When the Kubelet lists containers (`docker_container.go:ListContainers()`), it sets `All: true`, retrieving non-running containers. When docker stats is called with such container id, it'll return a valid JSON with all values set to 0. The non-running containers are filtered later on in the process. When the hcsshim is called with such container id, it'll return an error, effectively stopping the stats retrieval for all containers.
@vboulineau: This cherry pick PR is for a release branch and has not yet been approved by the Patch Release Team. To merge this cherry pick, please ping the kubernetes/patch-release-team in a comment, after it has been approved by the relevant OWNERS. 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. |
Hi @vboulineau. 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 Once the patch is verified, the new status will be reflected by the 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. |
/kind bug |
/ok-to-test @derekwaynecarr @michmike could you help to approve and lgtm the cherry pick? |
@michmike @derekwaynecarr @dchen1107 can you help get this in by the cherry-pick deadline coming up in a few days? |
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
/approve
@yujuhong, @derekwaynecarr or @dchen1107 , would it be possible for one of you to take a look at the 3 cherry picks i will tag you now for review. the deadline is coming up soon. |
/lgtm |
kubelet change is lgtm. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dchen1107, michmike, vboulineau 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 |
/retest |
Cherry pick of #90554 on release-1.17.
#90554: kubelet: fix
/stats/summary
endpoint on Windows whenFor details on the cherry pick process, see the cherry pick requests page.