Not able to create rancher cluster setup

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

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/.

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

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

Thanks for your reply we will try for the same