RKE version 0.1.6
CentOS version - 7.5.1804
OpenSSH version - OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
RKE is running on macos
When creating a 3 node rancher ha cluster using rke using “./rke_darwin-amd64 up --config rancher-cluster.yml” I am getting this error -
./rke_darwin-amd64 up --config rancher-cluster.yml
INFO[0000] Building Kubernetes cluster
INFO[0000] [dialer] Setup tunnel for host [x1]
WARN[0000] Failed to set up SSH tunneling for host [x1]: Can’t retrieve Docker Info: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: Failed to dial ssh using address [x1:22]: Error configuring SSH: ssh: no key found
INFO[0000] [dialer] Setup tunnel for host [x2]
WARN[0000] Failed to set up SSH tunneling for host [x2]: Can’t retrieve Docker Info: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: Failed to dial ssh using address [x2:22]: Error configuring SSH: ssh: no key found
INFO[0000] [dialer] Setup tunnel for host [x3]
WARN[0000] Failed to set up SSH tunneling for host [x3]: Can’t retrieve Docker Info: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: Failed to dial ssh using address [x3:22]: Error configuring SSH: ssh: no key found
WARN[0000] Removing host [x1] from node lists
WARN[0000] Removing host [x2] from node lists
WARN[0000] Removing host [x3] from node lists
FATA[0000] Cluster must have at least one etcd plane host
From my local machine I am able to ssh to these 3 hosts using my ssh key that I have mentioned in the rancher-cluster.yml file
I tried to change the user from “root” to “rancher” (new user created just for this) and still got the same error.
Here is beginning of my rancher-cluster.yml file -
- address: x1 # hostname or IP to access nodes
user: rancher # root user (usually ‘root’)
role: [controlplane,etcd,worker] # K8s roles for node
ssh_key_path: /Users/xxxxxx/.ssh/id_rsa.pub - address: x2
user: root
role: [controlplane,etcd,worker]
ssh_key_path: /Users/xxxxxx/.ssh/id_rsa.pub - address: x3
user: root
role: [controlplane,etcd,worker]
ssh_key_path: /Users/xxxxxx/.ssh/id_rsa.pub
I have also tried to update the openssh to 7.5 and still have the exact same error. I tried with these 2 docker versions - 1.12.6 and 17.03.02 and still have the same error. From my local machine where I am running rke, I am able to ssh to these hosts using both users - root and rancher without any passwords.
What am I missing? Thanks in advance