-
Notifications
You must be signed in to change notification settings - Fork 97
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
mixed architecture in opensuse tumbleweed images in versions starting from 3.0.9 #2624
Comments
This happened because of human error while backporting fixes on 3.0.X. The problem won't exist in 3.1.0 onwards (because CI handles this correctly). We should definitely avoid this happening when we backport but our focus is on getting 3.1.0 stable out. We won't cut a 3.0.X patch release just for this but will make sure it's fixed if we end up cutting a 3.0.X release anyhow. |
Fix will be there in 3.1.0 (actually it works fine on 3.1.0-alpha already) : #1792 thus I'm closing this. |
Thank you very much for the explanation. |
I've added also a notification on all affected releases @ElKiwos I think v3.0.4 should not have the issue in case you prefer not to consume the alpha release |
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [kairos-io/kairos](https://togithub.com/kairos-io/kairos) | patch | `v3.0.12` -> `v3.0.13` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>kairos-io/kairos (kairos-io/kairos)</summary> ### [`v3.0.13`](https://togithub.com/kairos-io/kairos/releases/tag/v3.0.13) [Compare Source](https://togithub.com/kairos-io/kairos/compare/v3.0.12...v3.0.13) ####⚠️ Known issues Since v3.0.5 we introduced the 🐛 [https://github.com/kairos-io/kairos/issues/2624](https://togithub.com/kairos-io/kairos/issues/2624) this is related to our backporting mechanism, which we will address starting in v3.1.x #### 🐛 Bug fixes - [https://github.com/kairos-io/kairos/issues/2488](https://togithub.com/kairos-io/kairos/issues/2488) **Full Changelog**: kairos-io/kairos@v3.0.12...v3.0.13 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/marinatedconcrete/config). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Thank you very much @mauromorales for backporting this |
@ElKiwos sure thing! The main Kairos repo, has a Dockerfile that is common to all distros, there one of the sources is Kairos' framework image kairos/images/Dockerfile.kairos Line 2 in b174f3d
Normally, this image, includes all the latest versions of the packages, which you can find on https://packages.kairos.io/ Normally, those images are multi-arch https://quay.io/repository/kairos/framework?tab=tags&tag=latest However, for the backported fixes (most of the 3.0.x releases) we made the mistake to manually copy the backported packages e.g. Which breaks arm because the arm packages live on a different repo https://quay.io/repository/kairos/packages-arm64 So for the latest release all I did is to add targets per targetarch But long term, we should instead find a way to backport that plays well with the traditional way of using the multi-arch images. I hope I did a good job explaining it, but please don't hesitate to ask any questions because this process is not trivial. |
Kairos version:
CPU architecture, OS, and Version:
Linux 72af8f086b52 6.9.4-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 12 Jun 2024 20:17:17 +0000 aarch64 aarch64 aarch64 GNU/Linux
Describe the bug
Upgrade from opensuse-tumbleweed-standard-arm64-rpi4-v3.0.6-k3sv1.29.3-k3s1 to opensuse-tumbleweed-standard-arm64-rpi4-v3.0.9-k3sv1.29.3-k3s1 fails with
/usr/sbin/suc-upgrade: line 15: /usr/bin/kairos-agent: cannot execute binary file: Exec format error
To Reproduce
Expected behavior
Upgrades to versions >= 3.0.9 are possible on opensuse-tumbleweed-standard
Logs
Log output of the apply job on the first node:
Additional context
I first discovered this phenomenon while trying to upgrade my raspberry pi cluster from opensuse-tumbleweed-standard-arm64-rpi4-v3.0.6-k3sv1.29.3-k3s1 to opensuse-tumbleweed-standard-arm64-rpi4-v3.0.9-k3sv1.29.3-k3s1.
This resulted in the error of the system-upgrade job of the first node with the following error:
Examining the images locally my development machine (amd64)
3.0.9:
Running the 3.0.9 arm64 image with
docker run -it quay.io/kairos/opensuse:tumbleweed-standard-arm64-rpi4-v3.0.9-k3sv1.29.3-k3s1@sha256:ff1bf40d1ca19a074510214c9e8aede30efaf089182542a783018e1b3a9c70a8 "/bin/sh"
3.0.6:
Running the 3.0.6 arm64 image with
docker run -it quay.io/kairos/opensuse:tumbleweed-standard-arm64-rpi4-v3.0.6-k3sv1.29.3-k3s1@sha256:f725f6cf5a8fd07a141695a416ad918c923606a35cd9fd5fc74f340f14e1e75e "/bin/sh"
The text was updated successfully, but these errors were encountered: