preflight from ubuntu_k8s_unit_tests failed with Groovy-5.8 GCP

Bug #1900653 reported by Po-Hsu Lin
6
This bug affects 1 person
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-socat]: socat not found in system path
    [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-socat]: socat not found in system path
    [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-socat]: socat not found in system path
    [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-socat]: socat not found in system path
    [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-socat]: socat not found in system path
    [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: TestRunInitNodeChecks (0.32s)
    checks_test.go:250: failed RunInitNodeChecks:
    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-errors=...`
    [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-socat]: socat not found in system path
    [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-socat]: socat not found in system path
    [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-socat]: socat not found in system path
    [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/kubernetes/cmd/kubeadm/app/preflight 0.488s

Po-Hsu Lin (cypressyew)
tags: added: 5.8 gcp groovy ubuntu-k8s-unit-tests
tags: added: amd64 sru-20201130
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This can be fixed by enabling the kubelet.service

To do so, you will have to follow the instruction here to install necessary packages:
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/

However after the service was enabled, this test will fail with:

  [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
  [WARNING Hostname]: hostname "" could not be reached
  [WARNING Hostname]: hostname "": lookup : no such host
 --- FAIL: TestRunInitNodeChecks (1.57s)
     checks_test.go:250: failed RunInitNodeChecks:
          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-errors=...`
  [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/kubernetes/cmd/kubeadm/app/preflight 2.052s

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.