Skip to content

ci: fix CNI initialization failure in crictl e2e tests - #977

Draft
safiya2610 wants to merge 1 commit into
urunc-dev:mainfrom
safiya2610:fix-cni-initialization-967
Draft

ci: fix CNI initialization failure in crictl e2e tests#977
safiya2610 wants to merge 1 commit into
urunc-dev:mainfrom
safiya2610:fix-cni-initialization-967

Conversation

@safiya2610

@safiya2610 safiya2610 commented Aug 16, 2026

Copy link
Copy Markdown

Description

This PR fixes the failing crictl e2e tests 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 that containerd was relying on.

To resolve this dependency on external environment factors, this PR updates the vm_test.yml workflow 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 the crictl e2e tests 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

  • I have read the contribution guide.
  • The linter passes locally (make lint).
  • The e2e tests of at least one tool pass locally (make test_ctr, make test_nerdctl, make test_docker, make test_crictl).
  • If LLMs were used: I have read the llm policy.

@netlify

netlify Bot commented Aug 16, 2026

Copy link
Copy Markdown

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit 1d3c3e2
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/6a81907d8b3e7a0008875a38

@safiya2610
safiya2610 force-pushed the fix-cni-initialization-967 branch from 5326b53 to 1d3c3e2 Compare August 16, 2026 10:27
@safiya2610

Copy link
Copy Markdown
Author

@cmainas PTAL.

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.

Crictl e2e tests fial in CI because cni plugin not initialize

1 participant