Skip to content

Conversation

@wllenyj
Copy link
Contributor

@wllenyj wllenyj commented Sep 19, 2022

This pr is Sansbox API work in #7312. Implemented Controller.Wait and Controller.Stop.

TODO list:

  • don't use CRI.sandboxStore in Controller
  • The Controller maintains its own Status instead of CRI's sandboxStore.
  • implement TaskExit event backoff in Controller.Stop

Signed-off-by: wanglei01 wllenyj@linux.alibaba.com

@k8s-ci-robot
Copy link

Hi @wllenyj. 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 /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.

Details

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.

@wllenyj wllenyj force-pushed the sandbox_stop branch 2 times, most recently from b1eb0cf to f8b57dc Compare September 19, 2022 08:09
@wllenyj wllenyj changed the title WIP: Controller.Wait and Controller.Stop Sandbox API: Controller.Wait and Controller.Stop Sep 20, 2022
@wllenyj wllenyj changed the title Sandbox API: Controller.Wait and Controller.Stop Sandbox API: implement Controller.Wait Sep 20, 2022
@mxpv
Copy link
Member

mxpv commented Sep 21, 2022

This looks good to me. I think it's fine to follow up on TODOs in separate PRs (if possible) to keep PR sizes sane. Just need to get CI tests green.

@samuelkarp
Copy link
Member

Would you mind rebasing on main? We just merged a fix (in #7413) to CI that had caused the sbserver CRI implementation to not be tested properly.

@mxpv mxpv added this to the 1.7 milestone Sep 21, 2022
@wllenyj wllenyj marked this pull request as ready for review September 21, 2022 14:33
@wllenyj wllenyj changed the title Sandbox API: implement Controller.Wait Sandbox API: implement Controller.Wait and Controller.Stop Sep 21, 2022
@wllenyj
Copy link
Contributor Author

wllenyj commented Sep 21, 2022

Thanks. @mxpv @samuelkarp
I've rebase it.

@estesp
Copy link
Member

estesp commented Sep 21, 2022

looks like all the sandbox runs have actual failures that need investigation

@wllenyj
Copy link
Contributor Author

wllenyj commented Sep 21, 2022

looks like all the sandbox runs have actual failures that need investigation

Thanks, I will check it right away

@wllenyj
Copy link
Contributor Author

wllenyj commented Sep 21, 2022

@estesp Thanks for your reminder.
A wrong return type is used. It has been fixed.

@wllenyj wllenyj force-pushed the sandbox_stop branch 2 times, most recently from f8d29eb to 8e82872 Compare September 21, 2022 17:46
Rework sandbox monitoring, we should rely on Controller.Wait instead of
CRIService.StartSandboxExitMonitor

Signed-off-by: WangLei <wllenyj@linux.alibaba.com>
Signed-off-by: WangLei <wllenyj@linux.alibaba.com>
Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants