Open ccravens opened 2 hours ago
ok I think I found the issue, in the install script at https://get.rke2.io/, x86_64 is hardcoded when creating the repo entry:
cat <<-EOF >"${repodir}/rancher-rke2.repo"
[rancher-rke2-common-${rke2_rpm_channel}]
name=Rancher RKE2 Common (${1})
baseurl=https://${rpm_site}/rke2/${rke2_rpm_channel}/common/${rpm_site_infix}/noarch
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://${rpm_site}/public.key
EOF
if [ -z "${INSTALL_RKE2_COMMIT}" ]; then
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 ### Hardcoded
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://${rpm_site}/public.key
EOF
And I confirmed this when cat'ing out the repo entry:
[root@localhost ~]# uname -m
aarch64
[root@localhost ~]# cat /etc/yum.repos.d/rancher-rke2.repo
[rancher-rke2-common-stable]
name=Rancher RKE2 Common (stable)
baseurl=https://rpm.rancher.io/rke2/stable/common/centos/8/noarch
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://rpm.rancher.io/public.key
[rancher-rke2-1.28-stable]
name=Rancher RKE2 1.28 (stable)
baseurl=https://rpm.rancher.io/rke2/stable/1.28/centos/8/x86_64. ## x86_84
enabled=1
gpgcheck=1
repo_gpgcheck=0
gpgkey=https://rpm.rancher.io/public.key
[root@localhost ~]#
Also I'm not sure we had RPMs built for 1.28.3, why are you specifically using such an old version?
We just started providing RPMs for arm64 with last month's releases, but this was already pointed out on Slack.
Environmental Info: RKE2 Version: v1.28.3~rke2r1
Node(s) CPU architecture, OS, and Version: Rocky 8.10 aarch64
Cluster Configuration: 3 masters 6 workers
Describe the bug: I'm running the following command as root:
However I get the following error:
Even though in the https://get.rke2.io/ script, I see this:
Which returns the correct value of aarch64:
Why is it pulling x86_64 packages when installing on an aarch64 architecture?
Steps To Reproduce: Run the following on an ARM64 build of Rocky 8.10:
Expected behavior: RKE2 installer uses the correct repo for
aarch64
Actual behavior: RKE2 installer uses the incorrect repo
x86_64
Additional context / logs: None