preflight from ubuntu_k8s_unit_tests failed with Groovy-5.8 GCP
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
Issue found on 5.8.0-1008.8
Test failed with:
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
[WARNING FileExisting-
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
[WARNING FileExisting-
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
[WARNING FileExisting-
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
[WARNING FileExisting-
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
[WARNING FileExisting-
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
--- FAIL: TestRunInitNode
checks_
expected: true
actual: false
error: [preflight] Some fatal errors occurred:
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
[WARNING FileExisting-
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
[WARNING FileExisting-
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH
[WARNING FileExisting-
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Service-Kubelet]: kubelet service is not enabled, please run 'systemctl enable kubelet.service'
FAIL
FAIL k8s.io/
tags: | added: 5.8 gcp groovy ubuntu-k8s-unit-tests |
tags: | added: amd64 sru-20201130 |
This can be fixed by enabling the kubelet.service
To do so, you will have to follow the instruction here to install necessary packages: /kubernetes. io/docs/ setup/productio n-environment/ tools/kubeadm/ install- kubeadm/
https:/
However after the service was enabled, this test will fail with:
[WARNING Hostname]: hostname "" could not be reached Checks (1.57s) test.go: 250: failed RunInitNodeChecks:
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore- preflight- errors= ...` kubernetes/ cmd/kubeadm/ app/preflight 2.052s
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
--- FAIL: TestRunInitNode
checks_
expected: true
actual: false
error: [preflight] Some fatal errors occurred:
[ERROR NumCPU]: the number of available CPUs 1 is less than the required 2
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
[WARNING Hostname]: hostname "" could not be reached
[WARNING Hostname]: hostname "": lookup : no such host
FAIL
FAIL k8s.io/