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

network: fix private sandbox netns #122

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

Burning1020
Copy link
Member

Optimize sandbox lifecycle management

  1. Add many roll back handlers in the process of starting sandbox.
  2. Move setup network to Start sandbox as it should be called near the vm startup.
  3. Only monit running sandbox and dump it status in time.
  4. Sandbox stop should make sure the sandbox is stopped successfully, so wait it
    to stop for 10s.
  5. If the VM process terminated suddenly and the containerd has no idea to stop
    sandbox, destroy network should be done in monit thread.
  6. Forcefully kill vmm process in stopping sandbox.

Signed-off-by: Zhang Tianyang [email protected]

@Burning1020 Burning1020 requested a review from a team as a code owner April 7, 2024 08:15
Signed-off-by: Zhang Tianyang <[email protected]>
1. Add many roll back handlers in the process of starting sandbox.
2. Move setup network to Start sandbox as it should be called near the vm startup.
3. Only monit running sandbox and dump it status in time.
4. Sandbox stop should make sure the sandbox is stopped successfully, so wait it
to stop for 10s.
5. If the VM process terminated suddenly and the containerd has no idea to stop
sandbox, destroy network should be done in monit thread.
6. Forcefully kill vmm process in stopping sandbox.

Signed-off-by: Zhang Tianyang <[email protected]>
@abel-von abel-von merged commit f1106e7 into kuasar-io:main Apr 7, 2024
15 checks passed
@Burning1020 Burning1020 deleted the optim-sandbox-life branch August 16, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants