Bugzilla – Bug 1222696
rke2 fails to start: "Failed to validate golang version: kubernetes golang build version not set"
Last modified: 2024-04-18 14:35:02 UTC
Hi all, I'm trying to install rke2 via the Tumbleweed repositories and get the following error: kube3:~ # rke2 server WARN[0000] not running in CIS mode INFO[0000] Applying Pod Security Admission Configuration FATA[0000] Failed to validate golang version: kubernetes golang build version not set - see 'golang: upstream version' in https://github.com/kubernetes/kubernetes/blob/dev/build/dependencies.yaml It appears as if upstream Kubernetes has changed something which is blocking the running of Kubernetes unless the golang build version is set. The k3s package from devel:kubic seems to have the same problem. On a side note, would it be possible to include systemd service files with this package? I would be willing to write some based on the upstream rke2 install script if required. Cheers
Hi Alex, I'll check. Looks like the package setup has changed a lot since I last had a deeper look. Kind Regards, Johannes
For the record: I have a package in my OBS project that contains the correct version information. https://build.opensuse.org/project/show/home:ojkastl_buildservice:Branch_devel_kubic However it fails to start as rke2 was built using go1.21.9, while upstream kubernetes requires go1.29.8... I'll try to solve this later. Kind Regards, Johannes
Hi Alex, can you give the rke2 package from this repo a try, please? https://build.opensuse.org/project/show/home:ojkastl_buildservice:Branch_devel_kubic At least for me "rke2 server" starts up without a warning... Kind Regards, Johannes
On a side note, I have package the systemd service files in the rke2-1.28 package that also contains the fixes that I added into the rke2 package. Both packages are available in the repo I mentioned: https://build.opensuse.org/project/show/home:ojkastl_buildservice:Branch_devel_kubic In my first tests, the service files worked fine. So if you could test and confirm they are working I will add them to the rke2 and other rke-1.* packages, too. Kind Regards, Johannes
Looks great! ```rke2-1.29``` seems to start up correctly now when running ```rke2 server``` and I also had a look at the service files from ```rke2-1.28``` and they seem correct as far as I can tell. It's taking a while to activate but I imagine that's because I need to configure things.
rke2 including the fix was sent to openSUSE Factory. I added the service files in the meantime and will send this in another SR. The other packages (rke2-1.28, rke2-1.27, rke2-1.26, rke2-1.25) will be fixed and sent to Factory including the service files soon. Any objections to closing this one? Kind Regards, Johannes
No objections. Thanks for the assistance! Cheers.
Hi Alex, I did some more testing and I had to add iptables as a dependency, otherwise the nginx-ingress-controller pod would not start. The lines showed that the iptables command was not found. Could you test the package one more time? rke2 or rke2-1.28 does not matter, both have been updated and contain the GOLANG_VERSION fix, the service files and the iptables dependency. Kind Regards, Johannes
This is an autogenerated message for OBS integration: This bug (1222696) was mentioned in https://build.opensuse.org/request/show/1167917 Factory / rke2
It looks like the nginx-ingress-controller is running here after the upgrade.
Alex, can you please check whether you have the iptables package installed?
iptables is installed, and wants to uninstall rke2 among others if I try to remove it: The following 5 packages are going to be REMOVED: cockpit-podman iptables patterns-microos-cockpit podman rke2-1.28 and zypper info confirms it depends on iptables: Requires : [3] libc.so.6(GLIBC_2.34)(64bit) iptables /bin/sh
Hi Alex, then let's close this bug and submit the other fixes to Factory, for the rke2 and the rke2-1* packages. Kind Regards, Johannes
Packages containing fixes and service files are on their way to Factory: - https://build.opensuse.org/request/show/1168836 - https://build.opensuse.org/request/show/1168837 - https://build.opensuse.org/request/show/1168838 - https://build.opensuse.org/request/show/1168839 - https://build.opensuse.org/request/show/1168840
This is an autogenerated message for OBS integration: This bug (1222696) was mentioned in https://build.opensuse.org/request/show/1168883 Factory / rke2-1.28 https://build.opensuse.org/request/show/1168884 Factory / rke2-1.27 https://build.opensuse.org/request/show/1168885 Factory / rke2-1.26 https://build.opensuse.org/request/show/1168886 Factory / rke2-1.25