-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Terminate execution for criu that does not meet version requirements #4431
Conversation
Thanks, could you have a test case? |
libcontainer/criu_linux.go
Outdated
@@ -186,7 +186,7 @@ func criuNsToKey(t configs.NamespaceType) string { | |||
|
|||
func (c *Container) handleCheckpointingExternalNamespaces(rpcOpts *criurpc.CriuOpts, t configs.NamespaceType) error { | |||
if !c.criuSupportsExtNS(t) { | |||
return nil | |||
return fmt.Errorf("criu version does not meet the requirements") |
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.
Maybe something more specific, like
return fmt.Errorf("criu lacks support for external %s namespace (old criu version?)", configs.NsName(t))
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.
Yes, that's better. I will change it later.
It's hard to add a test as it would require installing some old criu version. |
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.
Should we do the same in handleRestoringExternalNamespaces
?
Signed-off-by: yangzhao.hjh <[email protected]>
Good idea, there is the same problem in |
CI failures appear to be flakes (filed #4437). Failed CI jobs restarted. |
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.
@yangzhao02 please avoid adding merge commits (use git pull --rebase
to rebase your working tree)
This pull request has been moved to #4440 |
This pull request is used to solve When I use runc and criu 3.9, it crashed . When the criu version does not meet the requirements, execution will be terminated directly to prevent unpredictable behavior.