-
Notifications
You must be signed in to change notification settings - Fork 266
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
RKE2 Installation Fails on Rocky Linux with aarch64 Architecture #5135
Comments
arm64 support is still experimental; OS validation currently only covers the amd64 platform. In the mean time, you should be able to manually install the rke2-selinux package from https://github.com/rancher/rke2-selinux/releases, and then set |
I have a similar problem when installing on EuroLinux 😅. The problem is not with the rke2-selinux which is a noarch (architecture-independent) package but the I tried to hack the repository (the fact that repositories are not auto-indexed due to S3 or a similar solution sucks) to check if there is even the arm64 build available but both curl https://rpm.rancher.io/rke2/stable/1.28/centos/9/aarch64/repodata/repomd.xml and curl https://rpm.rancher.io/rke2/stable/1.28/centos/9/aarch64/repodata/repomd.xml returns 404 when curl https://rpm.rancher.io/rke2/stable/1.28/centos/9/x86_64/repodata/repomd.xml returns proper repository data. When the ARM64 build (that for RHEL-like system is noted as The YUM/DNF based distros (anything that is RHEL-based) should leverage the
--- orig 2024-01-03 23:32:10.742136873 +0000
+++ orig_fixed 2024-01-03 23:32:32.112248146 +0000
@@ -555,7 +555,7 @@
cat <<-EOF >>"${repodir}/rancher-rke2.repo"
[rancher-rke2-${rke2_majmin}-${rke2_rpm_channel}]
name=Rancher RKE2 ${rke2_majmin} (${1})
-baseurl=https://${rpm_site}/rke2/${rke2_rpm_channel}/${rke2_majmin}/${rpm_site_infix}/x86_64
+baseurl=https://${rpm_site}/rke2/${rke2_rpm_channel}/${rke2_majmin}/${rpm_site_infix}/\$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=0 At the moment any RHEL-like that run on the arm64 is not supported including SUSE Liberty Linux. Best, |
As I said above, we don't currently support RPM installs on arm64, regardless of distro. |
Sorry! I had to be so focused/tired that I missed the proposed solution! EX on EL9 yum install -y https://github.com/rancher/rke2-selinux/releases/download/v0.17.stable.1/rke2-selinux-0.17-1.el9.noarch.rpm tar
curl -sfL https://get.rke2.io | INSTALL_RKE2_TYPE=agent INSTALL_RKE2_METHOD=tar INSTALL_RKE2_VERSION=v1.29.0+rke2r1 sh - Works like a charm. Thank you. I believe that this issue could be closed as tar installation on ARM64 works. Do you think that I should open a separate issue about RPM for aarch64? |
Nah, we will want to support RPMs eventually once arm64 leaves experimental status - so I think we can leave this open to track that. |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
I've created #6313 with a workaround for this issue. Although this is not a permanent fix, at least this fixes the broken install for now. How can I request a review for this PR? |
This repository uses a bot to automatically label issues which have not had any activity (commit/comment/label) for 45 days. This helps us manage the community issues better. If the issue is still relevant, please add a comment to the issue so the bot can remove the label and we know it is still valid. If it is no longer relevant (or possibly fixed in the latest release), the bot will automatically close the issue in 14 days. Thank you for your contributions. |
This issue is still very relevant! I'm disappointed to see the lack of activity on #6313 with the fix for this issue. How so I get an approval (or even a rejection with comment) on that PR? |
Environmental Info:
RKE2 Version:
Node(s) CPU architecture, OS, and Version:
First verified on the latest Rocky Linux 9.3 after I saw that this OS is validated here:
Second verified on the supported OS Rocky Linux 8.7:
Cluster Configuration:
Facing an issue during RKE2 installation. Sharing two scenarios as follows:
Scenario-1 On Validated Rocky Linux 9.3:
Scenario-2 On Supported Rocky Linux 8.7:
Describe the bug:
I see that RKE2 is supported for ARM-based OS post 1.27.3 release. However, when I try to install it on Ubuntu OS with an aarch64 system, it installs correctly. Still, it fails for Rocky Linux.
I believe this is due to some glitch in the install.sh script. Instead of pulling the ARM package, it pulls the x86 package, as we can see in the error log.
Steps To Reproduce:
Expected behavior:
It should install correctly.
Actual behavior:
Fails only on Rocky Linux ARM-based system.
Additional context / logs:
The text was updated successfully, but these errors were encountered: