Skip to content

Linux-None TestStartStop: [uploadconfig] kubeadm init error + unable to load client CA file /var/lib/minikube/certs/ca.crt: open /var/lib/minikube/certs/ca.crt: no such file or directory #3196

Closed
@tstromberg

Description

@tstromberg

https://storage.googleapis.com/minikube-builds/logs/3194/Linux-None.txt

util.go:76: Error running command: start --vm-driver=none  --v=10 --logtostderr --bootstrapper=kubeadm I1001 19:25:50.398327   15044 notify.go:121] Checking for updates...
		I1001 19:25:50.482095   15044 start.go:115] Viper configuration:
		I1001 19:25:50.482475   15044 cluster.go:73] Skipping create...Using existing machine configuration
		I1001 19:25:50.499544   15044 cluster.go:82] Machine state:  Stopped
		I1001 19:25:50.499752   15044 interface.go:360] Looking for default routes with IPv4 addresses
		I1001 19:25:50.499777   15044 interface.go:365] Default route transits interface "eth0"
		I1001 19:25:50.499995   15044 interface.go:174] Interface eth0 is up
		I1001 19:25:50.500065   15044 interface.go:222] Interface "eth0" has 1 addresses :[10.128.0.3/32].
		I1001 19:25:50.500090   15044 interface.go:189] Checking addr  10.128.0.3/32.
		I1001 19:25:50.500097   15044 interface.go:196] IP found 10.128.0.3
		I1001 19:25:50.500103   15044 interface.go:228] Found valid IPv4 address 10.128.0.3 for interface "eth0".
		I1001 19:25:50.500108   15044 interface.go:371] Found active IP 10.128.0.3 
		I1001 19:25:50.500192   15044 interface.go:360] Looking for default routes with IPv4 addresses
		I1001 19:25:50.500201   15044 interface.go:365] Default route transits interface "eth0"
		I1001 19:25:50.500312   15044 interface.go:174] Interface eth0 is up
		I1001 19:25:50.500342   15044 interface.go:222] Interface "eth0" has 1 addresses :[10.128.0.3/32].
		I1001 19:25:50.500354   15044 interface.go:189] Checking addr  10.128.0.3/32.
		I1001 19:25:50.500359   15044 interface.go:196] IP found 10.128.0.3
		I1001 19:25:50.500362   15044 interface.go:228] Found valid IPv4 address 10.128.0.3 for interface "eth0".
		I1001 19:25:50.500371   15044 interface.go:371] Found active IP 10.128.0.3 
		I1001 19:25:50.500899   15044 interface.go:360] Looking for default routes with IPv4 addresses
		I1001 19:25:50.500912   15044 interface.go:365] Default route transits interface "eth0"
		I1001 19:25:50.501447   15044 interface.go:174] Interface eth0 is up
		I1001 19:25:50.501555   15044 interface.go:222] Interface "eth0" has 1 addresses :[10.128.0.3/32].
		I1001 19:25:50.501589   15044 interface.go:189] Checking addr  10.128.0.3/32.
		I1001 19:25:50.501598   15044 interface.go:196] IP found 10.128.0.3
		I1001 19:25:50.501619   15044 interface.go:228] Found valid IPv4 address 10.128.0.3 for interface "eth0".
		I1001 19:25:50.501632   15044 interface.go:371] Found active IP 10.128.0.3 
		I1001 19:25:50.503492   15044 kubeadm.go:215] Container runtime flag provided with no value, using defaults.
		I1001 19:25:50.732194   15044 exec_runner.go:39] Run: 
		sudo systemctl daemon-reload &&
		sudo systemctl enable kubelet &&
		sudo systemctl start kubelet
		
		I1001 19:25:50.873793   15044 certs.go:47] Setting up certificates for IP: 10.128.0.3
		I1001 19:25:50.891306   15044 interface.go:360] Looking for default routes with IPv4 addresses
		I1001 19:25:50.891335   15044 interface.go:365] Default route transits interface "eth0"
		I1001 19:25:50.891544   15044 interface.go:174] Interface eth0 is up
		I1001 19:25:50.891604   15044 interface.go:222] Interface "eth0" has 1 addresses :[10.128.0.3/32].
		I1001 19:25:50.891629   15044 interface.go:189] Checking addr  10.128.0.3/32.
		I1001 19:25:50.891645   15044 interface.go:196] IP found 10.128.0.3
		I1001 19:25:50.891652   15044 interface.go:228] Found valid IPv4 address 10.128.0.3 for interface "eth0".
		I1001 19:25:50.891657   15044 interface.go:371] Found active IP 10.128.0.3 
		I1001 19:25:50.891744   15044 config.go:125] Using kubeconfig:  /root/.kube/config
		I1001 19:25:50.893597   15044 exec_runner.go:50] Run with output: 
		sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI  &&
		sudo /usr/bin/kubeadm alpha phase addon kube-dns
		
		E1001 19:26:08.700925   15044 start.go:326] Error starting cluster:  kubeadm init error 
		sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI  &&
		sudo /usr/bin/kubeadm alpha phase addon kube-dns
		 running command: : running command: 
		sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI  &&
		sudo /usr/bin/kubeadm alpha phase addon kube-dns
		
		 output: [init] Using Kubernetes version: v1.10.0
		[init] Using Authorization modes: [Node RBAC]
		[preflight] Running pre-flight checks.
			[WARNING SystemVerification]: docker version is greater than the most recently validated version. Docker version: 17.07.0-ce. Max validated version: 17.03
			[WARNING Hostname]: hostname "minikube" could not be reached
			[WARNING Hostname]: hostname "minikube" lookup minikube on 169.254.169.254:53: no such host
			[WARNING FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml]: /etc/kubernetes/manifests/kube-apiserver.yaml already exists
			[WARNING FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml]: /etc/kubernetes/manifests/kube-controller-manager.yaml already exists
			[WARNING FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml]: /etc/kubernetes/manifests/kube-scheduler.yaml already exists
			[WARNING FileAvailable--etc-kubernetes-manifests-etcd.yaml]: /etc/kubernetes/manifests/etcd.yaml already exists
			[WARNING FileExisting-socat]: socat not found in system path
			[WARNING FileExisting-crictl]: crictl not found in system path
		Suggestion: go get github.com/kubernetes-incubator/cri-tools/cmd/crictl
		Flag --admission-control has been deprecated, Use --enable-admission-plugins or --disable-admission-plugins instead. Will be removed in a future version.
			[WARNING DirAvailable--data-minikube]: /data/minikube is not empty
		[certificates] Using the existing ca certificate and key.
		[certificates] Using the existing apiserver certificate and key.
		[certificates] Using the existing apiserver-kubelet-client certificate and key.
		[certificates] Using the existing etcd/ca certificate and key.
		[certificates] Using the existing etcd/server certificate and key.
		[certificates] Using the existing etcd/peer certificate and key.
		[certificates] Using the existing etcd/healthcheck-client certificate and key.
		[certificates] Using the existing apiserver-etcd-client certificate and key.
		[certificates] Using the existing sa key.
		[certificates] Using the existing front-proxy-ca certificate and key.
		[certificates] Using the existing front-proxy-client certificate and key.
		[certificates] Valid certificates and keys now exist in "/var/lib/minikube/certs/"
		[kubeconfig] Using existing up-to-date KubeConfig file: "/etc/kubernetes/admin.conf"
		[kubeconfig] Using existing up-to-date KubeConfig file: "/etc/kubernetes/kubelet.conf"
		[kubeconfig] Using existing up-to-date KubeConfig file: "/etc/kubernetes/controller-manager.conf"
		[kubeconfig] Using existing up-to-date KubeConfig file: "/etc/kubernetes/scheduler.conf"
		[controlplane] Wrote Static Pod manifest for component kube-apiserver to "/etc/kubernetes/manifests/kube-apiserver.yaml"
		[controlplane] Wrote Static Pod manifest for component kube-controller-manager to "/etc/kubernetes/manifests/kube-controller-manager.yaml"
		[controlplane] Wrote Static Pod manifest for component kube-scheduler to "/etc/kubernetes/manifests/kube-scheduler.yaml"
		[etcd] Wrote Static Pod manifest for a local etcd instance to "/etc/kubernetes/manifests/etcd.yaml"
		[init] Waiting for the kubelet to boot up the control plane as Static Pods from directory "/etc/kubernetes/manifests".
		[init] This might take a minute or longer if the control plane images have to be pulled.
		[apiclient] All control plane components are healthy after 6.605796 seconds
		[uploadconfig]Â Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace
		error uploading configuration: unable to create configmap: Post https://localhost:8443/api/v1/namespaces/kube-system/configmaps: dial tcp [::1]:8443: getsockopt: connection refused
		: running command: 
		sudo /usr/bin/kubeadm init --config /var/lib/kubeadm.yaml --ignore-preflight-errors=DirAvailable--etc-kubernetes-manifests --ignore-preflight-errors=DirAvailable--data-minikube --ignore-preflight-errors=Port-10250 --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-scheduler.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-apiserver.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-kube-controller-manager.yaml --ignore-preflight-errors=FileAvailable--etc-kubernetes-manifests-etcd.yaml --ignore-preflight-errors=Swap --ignore-preflight-errors=CRI  &&
		sudo /usr/bin/kubeadm alpha phase addon kube-dns
		
		.: exit status 1

And later:

Oct 01 19:20:20 kvm-integration-slave systemd[1]: Started kubelet: The Kubernetes Node Agent.
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --pod-manifest-path has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --authorization-mode has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --cadvisor-port has been deprecated, The default will change to 0 (disabled) in 1.12, and the cadvisor port will be removed entirely in 1.13
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --allow-privileged has been deprecated, will be removed in a future version
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --cluster-dns has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --cluster-domain has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --client-ca-file has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --cgroup-driver has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: Flag --fail-swap-on has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: I1001 19:20:20.829645    6151 feature_gate.go:226] feature gates: &{{} map[]}
Oct 01 19:20:20 kvm-integration-slave kubelet[6151]: F1001 19:20:20.829775    6151 server.go:218] unable to load client CA file /var/lib/minikube/certs/ca.crt: open /var/lib/minikube/certs/ca.crt: no such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/flakeCategorizes issue or PR as related to a flaky test.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions