# Not able to create rancher cluster setup

**URL:** <https://forums.suse.com/t/not-able-to-create-rancher-cluster-setup/15991>\
**Category:** General\
**Created:** [December 3, 2019, 9:03am UTC](https://forums.suse.com/t/not-able-to-create-rancher-cluster-setup/15991 "2019-12-03T09:03:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sara](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sara/32/6045_2.png) [@sara](https://forums.suse.com/u/sara)\
**Post date:** [December 3, 2019, 9:03am UTC](https://forums.suse.com/t/not-able-to-create-rancher-cluster-setup/15991/1 "2019-12-03T09:03:56Z")

</div>

we are getting below error  
NFO[0002] Successfully Deployed state file at [./rancher-cluster.rkestate]  
INFO[0002] Building Kubernetes cluster  
FATA[0002] Cluster must have at least one etcd plane host: please specify one or more etcd in cluster config  
Please find the our yaml file configuration  
nodes:

- address: 192.168.X.2  
user: sara  
role: [controlplane,etcd]
- address: 192.168.X.3  
user: sara  
role: [controlplane]
- address: 192.168.X.4  
user: sara  
role: [controlplane]  
services:  
etcd:  
snapshot: true  
creation: 6h  
retention: 24h

---

<div class="post-metadata">

**Author:** ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)\
**Post date:** [December 5, 2019, 9:24am UTC](https://forums.suse.com/t/not-able-to-create-rancher-cluster-setup/15991/2 "2019-12-05T09:24:57Z")

</div>

Please post the complete log, the top part will show it trying to connect to your nodes which probably fails, causing it not to be able to provision because its missing an etcd node in the cluster to provision. If it can’t connect to the node, you can check [https://rancher.com/docs/rke/latest/en/troubleshooting/ssh-connectivity-errors/](https://rancher.com/docs/rke/latest/en/troubleshooting/ssh-connectivity-errors/).

---

<div class="post-metadata">

**Author:** ![sara](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sara/32/6045_2.png) [@sara](https://forums.suse.com/u/sara)\
**Post date:** [December 5, 2019, 10:55am UTC](https://forums.suse.com/t/not-able-to-create-rancher-cluster-setup/15991/4 "2019-12-05T10:55:06Z")

</div>

Thanks for your reply!! we are getting below error

INFO[0000] [dialer] Setup tunnel for host [10.x.x.11]  
INFO[0000] [dialer] Setup tunnel for host [10.x.x.12]  
INFO[0000] [dialer] Setup tunnel for host [10.x.x.13]  
WARN[0000] Failed to set up SSH tunneling for host [10.x.x.11]: Can’t retrieve Docker Info: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: Unable to access node with address [10.x.X.30:22] using SSH. Please check if you are able to SSH to the node using the specified SSH Private Key and if you have configured the correct SSH username. Error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain  
WARN[0000] Failed to set up SSH tunneling for host [10.x.x.12]: Can’t retrieve Docker Info: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: Unable to access the Docker socket (/var/run/docker.sock). Please check if the configured user can execute `docker ps` on the node, and if the SSH server version is at least version 6.7 or higher. If you are using RedHat/CentOS, you can’t use the user `root`. Please refer to the documentation for more instructions. Error: ssh: rejected: administratively prohibited (open failed)  
WARN[0000] Failed to set up SSH tunneling for host [10.x.x.13: Can’t retrieve Docker Info: error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info: Unable to access the Docker socket (/var/run/docker.sock). Please check if the configured user can execute `docker ps` on the node, and if the SSH server version is at least version 6.7 or higher. If you are using RedHat/CentOS, you can’t use the user `root`. Please refer to the documentation for more instructions. Error: ssh: rejected: administratively prohibited (open failed)  
WARN[0000] Removing host [10.x.x.11] from node lists  
WARN[0000] Removing host [10.x.x.12]from node lists  
WARN[0000] Removing host [10.x.x.13]rom node lists  
WARN[0000] [state] can’t fetch legacy cluster state from Kubernetes: Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) [10.x.x.11]  
INFO[0000] [certificates] Generating CA kubernetes certificates  
INFO[0000] [certificates] Generating Kubernetes API server aggregation layer requestheader client CA certificates  
INFO[0000] [certificates] Generating Kubernetes API server certificates  
INFO[0001] [certificates] Generating Service account token key  
INFO[0001] [certificates] Generating Kube Controller certificates  
INFO[0001] [certificates] Generating Kube Scheduler certificates  
INFO[0001] [certificates] Generating Kube Proxy certificates  
INFO[0001] [certificates] Generating Node certificate  
INFO[0001] [certificates] Generating admin certificates and kubeconfig  
INFO[0001] [certificates] Generating Kubernetes API server proxy client certificates  
INFO[0002] Successfully Deployed state file at [./rancher-cluster.rkestate]  
INFO[0002] Building Kubernetes cluster  
FATA[0002] Cluster must have at least one etcd plane host: please specify one or more etcd in cluster config

---

<div class="post-metadata">

**Author:** ![everton.andrade](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/everton.andrade/32/5875_2.png) [@everton.andrade](https://forums.suse.com/u/everton.andrade)\
**Post date:** [December 5, 2019, 11:24am UTC](https://forums.suse.com/t/not-able-to-create-rancher-cluster-setup/15991/5 "2019-12-05T11:24:08Z")

</div>

The configuration file is missing the key (.pem) to access the servers.

The log is showing that it failed to set up SSH tunneling to the servers and for this reason removed them from the node list.

Include the following line in your yaml file with the path to the key to access the servers: **ssh\_key\_path: ~/.ssh/k8s.pem**

---

<div class="post-metadata">

**Author:** ![sara](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/sara/32/6045_2.png) [@sara](https://forums.suse.com/u/sara)\
**Post date:** [December 6, 2019, 8:26am UTC](https://forums.suse.com/t/not-able-to-create-rancher-cluster-setup/15991/6 "2019-12-06T08:26:45Z")

</div>

Thanks for your reply we will try for the same
