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

Fix stop container when prestart hook fails. #1745

Merged
merged 2 commits into from
Mar 30, 2023
Merged

Conversation

yihuaf
Copy link
Collaborator

@yihuaf yihuaf commented Mar 29, 2023

Fixes #498

This is long overdue. This PR only aims to fix the pre-start hook case. I will review all the other hook case to match the lifecycle spec of the runtime spec.

@yihuaf yihuaf self-assigned this Mar 29, 2023
@yihuaf yihuaf requested review from utam0k and YJDoc2 March 29, 2023 21:55
@codecov-commenter
Copy link

Codecov Report

Merging #1745 (3c72809) into main (04de7bf) will decrease coverage by 0.06%.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1745      +/-   ##
==========================================
- Coverage   68.69%   68.63%   -0.06%     
==========================================
  Files         121      121              
  Lines       13314    13318       +4     
==========================================
- Hits         9146     9141       -5     
- Misses       4168     4177       +9     

Copy link
Collaborator

@YJDoc2 YJDoc2 left a comment

Choose a reason for hiding this comment

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

one small nit, and I have a question regarding the kill : would calling self.kill here and killing the process affect deletion of container after in any way?

crates/libcontainer/src/container/container_start.rs Outdated Show resolved Hide resolved
@yihuaf yihuaf merged commit 5a12fd7 into youki-dev:main Mar 30, 2023
@yihuaf yihuaf deleted the yihuaf/498 branch March 30, 2023 17:47
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.

prestart_fail.t leaves a stale youki process running
3 participants