ci: fix CNI initialization failure in crictl e2e tests - #977
Draft
safiya2610 wants to merge 1 commit into
Draft
Conversation
✅ Deploy Preview for urunc canceled.
|
Signed-off-by: safiya2610 <[email protected]>
safiya2610
force-pushed
the
fix-cni-initialization-967
branch
from
August 16, 2026 10:27
5326b53 to
1d3c3e2
Compare
Author
|
@cmainas PTAL. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes the failing
crictl e2etests in the CI pipeline where pods fail to create with the error:"cni plugin not initialized".The issue started occurring because newer GitHub Action runner images (Ubuntu 22.04+) removed pre-installed tools like
podman, which was inadvertently supplying the required CNI conflist thatcontainerdwas relying on.To resolve this dependency on external environment factors, this PR updates the
vm_test.ymlworkflow to explicitly write a default CNI bridge configuration file (10-containerd-net.conflist) into/etc/cni/net.d/immediately after the CNI plugins are installed.Related issues
How was this tested?
Verified by running the GitHub Actions CI pipeline (
vm_test.yml) against this branch to ensure that containerd networking initializes correctly and thecrictl e2etests pass.LLM usage
I used Google Gemini to help investigate the root cause in the GitHub Actions runner images, formulate the CNI configuration fix in
vm_test.yml, and draft this pull request.Checklist
make lint).make test_ctr,make test_nerdctl,make test_docker,make test_crictl).