Hi I deployed rancher helm chart on rke2 cluster a...
# discuss-terraform
i
Hi I deployed rancher helm chart on rke2 cluster and I am integrating Nutanix as the infrastructure provider. I have successfully enabled the Nutanix Node Driver in Rancher and able to provision VMs on Nutanix. However, during Kubernetes deployment, Rancher fails when attempting to SSH into the newly provisioned VM. The provisioning process halts with the following error:
Copy code
saga-worker-zgrzw-88tm4-machine-provision-7chnq machine Running pre-create checks...
saga-worker-zgrzw-88tm4-machine-provision-7chnq machine Creating machine...
saga-worker-zgrzw-88tm4-machine-provision-7chnq machine Waiting for machine to be running, this may take a few minutes...
saga-worker-zgrzw-88tm4-machine-provision-7chnq machine Detecting operating system of created instance...
saga-worker-zgrzw-88tm4-machine-provision-7chnq machine Waiting for SSH to be available...
saga-worker-zgrzw-88tm4-machine-provision-7chnq machine Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available. Last error: ssh command error: command: exit 0 err: exit status 255 output:
It appears that Rancher is unable to establish an SSH connection with the VM, which prevents Kubernetes from being installed. I am not able to identify who is initiating the ssh request, is it the rancher server or the docker-engine pod. I have exchanged the ssh keys in my VM image and I am able to do manual ssh without password from rancher server to new VM. On the newly provisioned VM I get the below logs in /var/log/secure Jul 16 151228 saga-master-7bhkg-cddtp sshd[4191]: Connection closed by authenticating user root 192.168.171.16 port 52876 [preauth] Jul 16 151231 saga-master-7bhkg-cddtp sshd[4194]: Connection from 192.168.171.16 port 15964 on 192.168.171.182 port 22 rdomain "" Jul 16 151231 saga-master-7bhkg-cddtp sshd[4194]: Failed publickey for root from 192.168.171.16 port 15964 ssh2: RSA SHA256:jUgitdzZY/2IL5YX8GQOthMUDEF3I7xJSyHk4KmgBPY Jul 16 151231 saga-master-7bhkg-cddtp sshd[4194]: Connection closed by authenticating user root 192.168.171.16 port 15964 [preauth]