-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playbook hangs on [Enable and check K3s service] #57
Comments
I had the same problem. For me the problem was the Firewall. Port 6443 was blocked on the master node. EDIT: A way to debug is to SSH into you Raspberry and execute the |
I had the same problem. For me, the master IP wasn't set properly. Anything that stops the k3s-node service from starting will cause that. I was able to see the error by running |
thanks for the info, as I had the same problem I assume JohnTheNerd is referring to a feature of when using a hostname for the control node, the installation fails to append that info with its IPaddr to the nodes' /etc/host file I was using a hostname as well in the [master] section and it failed. Switched to an explicit IPaddr and it installed fine and came up. alternate solution is to use ansible to spray out an update to the nodes' /etc/hosts file. update: I put k3s on a pi cluster using explicit IPaddrs and it works as above. thus the cluster machines had the internal IP and my machine had the public IP |
Thanks for the pointers in people that figured this out for their distros. Was able to resolve on Centos 7 by doing: |
I had the same problem. |
I changed
|
Mine is also failing on that same spot. I'm using Ubuntu Server 21.10 arm64 with k3s v1.22.5-k3s2. Logs from my nodes. I have 4 total, 1 master 3 workers. Each freshly imaged with Obviously the |
I had this same problem, changing the hostnames from "raspberrypi" to something unique seemed to make it work. |
I had the same issue. I'm trying to deploy to a series av VPSs and it seems like the playbook is trying to use the private IP of the master node when launching the worker nodes. |
Many thanks @b-m-f
(obviously adjust the |
I had the same issue also using Raspberry Pi OS 64-bit Bullseye Lite. Not until I was running with both IPs instead of hostnames and followed @nmstoker suggestion did it work. |
Just in case someone comes across this issue running Ubuntu version > 20.04: There's an issue on the k3s project regarding kernel modules: k3s-io/k3s#4234 (comment) Installing the necessary kernel modules helped me, the playbook ran successfully without hanging |
@Lechindianer You absolute champion, that was my issue! TY so much! |
the task
the problem is related to the setting here: in file
But the variable
But in my case, I set the hostname, not IP in the
So when check in node, I got
But there is no /etc/hosts to resolve its IP address, so the playbook is wait to join to the master, never finish (
The way to fix it is, if you use hostname in for example
|
Thanks @ozbillwang for the detailed info, I however fixed this by slightly modifying your suggestion. In the [master]
HOST_NAME ansible_host_ip=192.168.xxx.xxx then in the /group_vars/all.yml file, I changed how the variable |
Closing this as discussion seems to have ended. It is recommended that
|
I'm running the playbook with
ansible-playbook site.yml -i inventory/sample/hosts.ini -k -K -vv
.It runs successfully up to [Enable and check K3s service] in /node/tasks/main.yml, then it hangs indefinitely. I've run this with varying levels of verbosity and debugging on.
Running this on Raspberry Pi 4Bs, all of which have Raspberry Pi OS Lite.
hosts.ini
The text was updated successfully, but these errors were encountered: