Send container events with nil PodSandboxStatus#8047
Send container events with nil PodSandboxStatus#8047dmcgowan merged 2 commits intocontainerd:mainfrom
Conversation
|
Hi @ruiwen-zhao. Thanks for your PR. I'm waiting for a containerd 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. |
|
/assign @mikebrow |
|
sync'ed with @mxpv on Slack. With current implementation, the PLEG events are generated before sandboxstore.Add is called. So the event cannot get sandbox status by either calling cri.PodSandboxStatus or Controller.Status. The conclusion here is that we will move the event generations back to sbserver/, and will move them to podsandbox package after sandboxstore.Add is moved to Controller. |
3e07297 to
765dcf3
Compare
|
/ok-to-test |
Thanks Mike. Created kubernetes/kubernetes#115552 to cherry pick. |
@mikebrow kubernetes/kubernetes#115552 is now merged and will be released with 1.26.2. Can we get an approval on this PR? Also the windows failure seems to be irrelevant Can we also get a re-test? |
|
/test all |
|
@ruiwen-zhao looks good but needs a rebase to pick up the main branch fix for a path issue with cri-tools .. they moved the location of the test executable .. sigh |
53a9da5 to
f6a666b
Compare
uh thanks Mike! Somehow i was under the impression that github would rebase my change for me before running the tests. Rebased on top of main. |
it would for prow side k8s changes and any "latest" type project pulls, but not for the containerd/containerd changes as they are stowed in your branch |
f6a666b to
93f9aa4
Compare
|
/test pull-containerd-sandboxed-node-e2e |
|
@ruiwen-zhao I just merged the sandbox related change. Please rebase. Thanks |
…box status Signed-off-by: ruiwen-zhao <[email protected]>
Signed-off-by: ruiwen-zhao <[email protected]>
93f9aa4 to
51a8db2
Compare
|
/test pull-containerd-sandboxed-node-e2e |
|
All tests have passed and corresponding kubelet change is merged and cherry-picked. This PR should be OK to be merged. |
Signed-off-by: ruiwen-zhao [email protected]
This is a follow up action item of supporting Kubernete's Evented PLEG feature (kubernetes/enhancements#3386). Now that kubernetes/kubernetes#114351 merged, kubelet can handle nil PodSandboxStatus, containerd can send events with nil PodSandboxStatus.
Note that this PR also contains reverting part of #8007 (i.e. moving PLEG event generation back to sbserver) This is needed because we need the event generation to be in sbserver/ to be able to get PodSandboxStatus. More details in #8007 (comment).
fixes #7785