-
Notifications
You must be signed in to change notification settings - Fork 219
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
Container needs manual intervention to switch from Fedora Rawhide to Branched after branching #722
Comments
Could it be that you had an old Fedora 34 image (ie., If so, then try deleting the old image, and re-create the container. I wonder why the usual mechanisms for moving a system across the branching point doesn't work for our containers that were created before the branching. |
I have the latest image... at least according to a podman pull.
(I ran this earlier before filing the bug and it actually did grab a little bit of new content. But freshly create toolboxes still had the same issue.) I can try deleting and trying again. Perhaps updating isn't working? |
The problem here is that you're pulling the old image. We recently changed the name of the images from So, instead of:
use
The latest version of Toolbox should pull the proper image if it's not already pulled. |
So removing and using the default container image fixed it. Thanks! I wonder how many others are still using Is there some way to redirect this or fix the URL on existing systems? Or at least message a fix? |
...and I guess all my other toolboxes, including the F33 ones, are also based on the old location and are out of date? At least F33 is a bit older and updatable via |
Toolbox images don't get updated over time. To get an update they have to be pulled again. So, redirecting the URL would be a solution only for users of an old version of Toolbox which should not happen for users of Fedora (considering users don't use EOL version). A warning message is a good thing to add for the next release, thank you for the suggestion. |
Yes, that's what I meant by:
This seems like an annoying limitation of the OCI stack that we have hit once in a while, and I haven't been able to find a good way to deal with it. Maybe I am missing something? Or someone knows something?
I wouldn't worry so much about it. Once an OCI container has been created out of an image, conceptually, it's a thing on its own. It needs to be updated or maintained like any package-based distro. I don't know of an easy way to force an update by replacing the old image with a new one. It would be interesting if we could do that. :) |
For this we'd need a way to bootstrap the recreated toolboxes. Maybe even a user-provided script would be sufficient but how much can we trust that... |
Well, the container ultimately uses an overlaid filesystem. So one could imagine replacing the lower layer coming from the image. It's just that the available tooling doesn't seem to enable that. |
As for the original issue, switching from Fedora Rawhide to Branched has always looked somewhat messy to me. Officially one is meant to do:
However, the reliability of those steps seems predicated on a bunch of variables like was your last package update before the branch point or after and so on. It always felt very flaky to me. :) Toolbox containers aren't any different from Fedora hosts in this matter. |
Right. Inside the container that thought it was F34, but still used an old rawhide, doing those steps failed at the distro-sync. But it's a container, so it can be thrown away and rebuilt much easier than installing to bare metal, at least. 😉 |
Maybe it's time to go lower than Podman? :) |
Hello,
That led to a Rawhide container and signature errors when trying to update a fresh toolbox container:
As soon as I figured what is going on, this was easy to fix with
|
I've run into this again with Fedora 35:
Did not workaround the issue. |
I am tentatively closing this. The OCI stack doesn't offer an easy way to update an image from underneath an existing container, and switching a Fedora environment from Rawhide to Branched is always a bit messy. We could probably offer a way to prompt the user to manually switch. See #580 |
Describe the bug
When creating a Fedora 34 container, the repository sources are still set to rawhide, not Fedora 34.
(Yes, F34 is in beta, but this should have been fixed around branching time.)
Steps how to reproduce the behaviour
toolbox create f34 -r 34
toolbox enter f34
sudo dnf install -y htop
Additionally, a workaround with swapping rawhide for fedora repo sources and doing a
dnf distro-sync
doesn't work, as dnf fails.Expected behaviour
Creating a F34 container should have F34 ready-to-go. Packages should be installable by default and come from the F34 locations.
Actual behaviour
Output of
toolbox --version
(v0.0.90+)toolbox version 0.0.99.1
Toolbox package info (
rpm -q toolbox
)toolbox-0.0.99.1-1.fc34.x86_64
Output of
podman version
Podman package info (
rpm -q podman
)podman-3.0.1-1.fc34.x86_64
Info about your OS
Fedora Silverblue 34 (beta)
34.20210314.n.0 (Silverblue Prerelease)
Additional context
This issue has started happening ever since the branch from rawhide to Fedora 34 beta. This has happened in previous releases, but was fixed within a few weeks. It's been a lot longer now.
It's a good idea to consider using official upstream containers instead, but, meanwhile, it's important to get this fixed before the F34 beta is tested by even more people.
The text was updated successfully, but these errors were encountered: