Bug 1222696 - rke2 fails to start: "Failed to validate golang version: kubernetes golang build version not set"
Summary: rke2 fails to start: "Failed to validate golang version: kubernetes golang bu...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Kubic (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Forgotten User u0-bnvADNc
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-12 01:06 UTC by Alex Botelho
Modified: 2024-04-18 14:35 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Botelho 2024-04-12 01:06:22 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
Comment 1 Johannes Kastl 2024-04-14 07:50:53 UTC
Hi Alex,

I'll check. Looks like the package setup has changed a lot since I last had a deeper look.

Kind Regards,
Johannes
Comment 2 Johannes Kastl 2024-04-14 11:55:00 UTC
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
Comment 3 Johannes Kastl 2024-04-14 13:21:40 UTC
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
Comment 4 Johannes Kastl 2024-04-14 19:24:33 UTC
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
Comment 5 Alex Botelho 2024-04-14 20:54:48 UTC
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.
Comment 6 Johannes Kastl 2024-04-15 19:08:35 UTC
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
Comment 7 Alex Botelho 2024-04-16 01:18:24 UTC
No objections. Thanks for the assistance! Cheers.
Comment 8 Johannes Kastl 2024-04-16 06:03:40 UTC
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
Comment 9 OBSbugzilla Bot 2024-04-16 06:35:01 UTC
This is an autogenerated message for OBS integration:
This bug (1222696) was mentioned in
https://build.opensuse.org/request/show/1167917 Factory / rke2
Comment 10 Alex Botelho 2024-04-17 03:29:27 UTC
It looks like the nginx-ingress-controller is running here after the upgrade.
Comment 11 Johannes Kastl 2024-04-17 06:29:05 UTC
Alex,

can you please check whether you have the iptables package installed?
Comment 12 Alex Botelho 2024-04-18 02:38:43 UTC
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
Comment 13 Johannes Kastl 2024-04-18 04:58:39 UTC
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
Comment 15 OBSbugzilla Bot 2024-04-18 14:35:02 UTC
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