kata-containers / tests

Kata Containers tests, CI, and metrics
https://katacontainers.io/
Apache License 2.0
139 stars 196 forks source link

Conformance tests assume kubeadm environment #5674

Open surajssd opened 1 year ago

surajssd commented 1 year ago

The conformance test assume that you are running with kubeadm and tries to clean up the environment like crio, flannel, etc.

$ ./integration/kubernetes/e2e_conformance/run.sh
...
INFO: View sonobuoy status
         PLUGIN     STATUS   RESULT   COUNT                 PROGRESS
            e2e   complete   failed       1   Passed: 91, Failed:  6
   systemd-logs   complete   passed       4

Sonobuoy has completed. Use `sonobuoy retrieve` to get results.
INFO[0000] delete request issued                         kind=namespace namespace=sonobuoy
INFO[0000] delete request issued                         kind=clusterrolebindings
INFO[0000] delete request issued                         kind=clusterroles
secret "pod-annotate-webhook-certs" deleted
mutatingwebhookconfiguration.admissionregistration.k8s.io "pod-annotate-webhook" deleted
deployment.apps "pod-annotate-webhook" deleted
service "pod-annotate-webhook" deleted
~/code/work/kata-tests
INFO: Clean up the environment
[cleanup_env.sh:32] INFO: Reset Kubernetes
sudo: kubeadm: command not found
[cleanup_env.sh:36] INFO: Teardown the registry server
[cleanup_env.sh:278] INFO: restart docker service
[cleanup_env.sh:40] INFO: Stop crio service
Failed to stop crio.service: Unit crio.service not loaded.
[cleanup_env.sh:43] INFO: Remove network devices
[cleanup_env.sh:45] INFO: remove device: cni0
Cannot find device "cni0"
Cannot find device "cni0"
[cleanup_env.sh:45] INFO: remove device: flannel.1
Cannot find device "flannel.1"
Cannot find device "flannel.1"
[cleanup_env.sh:55] INFO: Check no kata processes are left behind after reseting kubernetes
/home/surajssd/kata-tests/integration/kubernetes/../../lib/common.bash: line 136: kata-runtime: command not found
/home/surajssd/kata-tests/integration/kubernetes/../../lib/common.bash: line 137: kata-runtime: command not found
/home/surajssd/kata-tests/integration/kubernetes/../../lib/common.bash: line 138: kata-runtime: command not found
/home/surajssd/kata-tests/integration/kubernetes/../../lib/common.bash: line 139: kata-runtime: command not found
readlink: missing operand
Try 'readlink --help' for more information.
/home/surajssd/kata-tests/integration/kubernetes/../../lib/common.bash: line 145: kata-runtime: command not found
/home/surajssd/kata-tests/integration/kubernetes/../../lib/common.bash: line 148: --version: command not found
/home/surajssd/kata-tests/integration/kubernetes/../../lib/common.bash: line 150: kata-runtime: command not found
/home/surajssd/kata-tests/integration/kubernetes/../../lib/common.bash: line 152: kata-runtime: command not found
[cleanup_env.sh:58] INFO: Checks that pods were not left
Not /run/vc/sbs directory found