Skip to content

Commit de16748

Browse files
authored
Merge pull request kubernetes#123886 from adrianreber/2024-03-12-criu-not-found
Handle containerd "CRIU not found" error message
2 parents 1cbe7b6 + cba3477 commit de16748

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/e2e_node/checkpoint_container.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ var _ = SIGDescribe("Checkpoint Container", nodefeature.CheckpointContainer, fun
217217
// or
218218
// '(rpc error: code = Unknown desc = checkpoint/restore support not available)'
219219
// if the container engine explicitly disabled the checkpoint/restore support
220+
// or
221+
// '(rpc error: code = Unknown desc = CRIU binary not found or too old (<31600). Failed to checkpoint container'
222+
// if the CRIU binary was not found if it is too old
220223
if (int(statusError.ErrStatus.Code)) == http.StatusInternalServerError {
221224
if strings.Contains(
222225
statusError.ErrStatus.Message,
@@ -239,6 +242,13 @@ var _ = SIGDescribe("Checkpoint Container", nodefeature.CheckpointContainer, fun
239242
ginkgo.Skip("Container engine does not implement 'CheckpointContainer'")
240243
return
241244
}
245+
if strings.Contains(
246+
statusError.ErrStatus.Message,
247+
"(rpc error: code = Unknown desc = CRIU binary not found or too old (<31600). Failed to checkpoint container",
248+
) {
249+
ginkgo.Skip("Container engine reports missing or too old CRIU binary")
250+
return
251+
}
242252
}
243253
framework.Failf(
244254
"Unexpected status code (%d) during 'CheckpointContainer': %q",

0 commit comments

Comments
 (0)