Kubeadm: Fail to create token when multi CRI sockets exist

Created on 8 May 2019  路  4Comments  路  Source: kubernetes/kubeadm

Is this a BUG REPORT or FEATURE REQUEST?

BUG REPORT

Choose one: BUG REPORT or FEATURE REQUEST

Versions

kubeadm version (use kubeadm version):
kubeadm version: &version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.0-alpha.2.323+b3a73f761f5b67", GitCommit:"b3a73f761f5b67f783d40a8b89dce47c5a015909", GitTreeState:"clean", BuildDate:"2019-05-07T06:02:57Z", GoVersion:"go1.12.4", Compiler:"gc", Platform:"linux/amd64"}

Environment:

  • Kubernetes version (use kubectl version):
    Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"archive", BuildDate:"2019-04-15T07:32:37Z", GoVersion:"go1.12.4", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:02:58Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}

What happened?

When I run "kubeadm token create --print-join-command", it show error as below

Found multiple CRI sockets, please use --cri-socket to select one: /var/run/dockershim.sock, /var/run/crio/crio.sock

Actually, I have executed "kubeadm init --cri-socket=/var/run/crio/crio.sock" when setup cluster.

If I pass --cri-socket with "kubeadm token create --cri-socket=/var/run/crio/crio.sock", it show
Error: unknown flag: --cri-socket

What you expected to happen?

show token created, maybe complete join command

How to reproduce it (as minimally and precisely as possible)?

1) install crio plugin
2) kubeadm init --cri-socket=/var/run/crio/crio.sock
3) kubeadm token create --print-join-command

Anything else we need to know?

kinbug lifecyclactive prioritimportant-longterm

Most helpful comment

/lifecycle active
I will try to solve this problem.

All 4 comments

Thanks for reporting it @jwang11
/kind bug
/assign

/lifecycle active
I will try to solve this problem.

/assign @rosti
PTAL too.

Hi @jwang11 and thanks for filing this issue!
One possible work around for now is to use a dummy config file just for kubeadm token create:

apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
nodeRegistration:
  criSocket: /var/run/crio/crio.sock

then your command would look something like:

kubeadm token create --print-join-command --config=dummy-config.yaml

Haven't tested that myself, but it should work for now, until we get the actual fix in.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jbrandes picture jbrandes  路  4Comments

ggaaooppeenngg picture ggaaooppeenngg  路  4Comments

chuckha picture chuckha  路  3Comments

helphi picture helphi  路  3Comments

ggee picture ggee  路  4Comments