-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Can't upgrade core machine #22678
Comments
With what version did you create the podman machine VM, the URL was only temporary and not part of 5.0 AFAIK. The proper address is |
@Luap99 I created VM with Podman 5.0.2 with no configs altered. |
@baude PTAL is there something in the machine that hard codes the wrong image path? |
This bug hits users with v5.0 machines who cannot use Rosetta when updating to Podman CLI v5.1 or later. |
@tnk4on Am I understand right that it is fixed in 5.1? |
@m-emelchenkov No, this relates to machine-os.
|
The code for the cause is hard coded below |
This should be fixed to point to the actual image @baude |
A friendly reminder that this issue had no activity for 30 days. |
When trying to upgrade 5.1.2, it also still points to 5.0 (and not to 5.1, as installed)
core@localhost:~$ sudo rpm-ostree upgrade
Pulling manifest: ostree-remote-image:fedora:docker://quay.io/containers/podman-machine-os:5.0
error: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: reading manifest 5.0 in quay.io/containers/podman-machine-os: unauthorized: access to the requested resource is not authorized |
Fix is probably not a difficult one -- what is preventing resolution of this issue ? |
The new machine is not (directly) based on CoreOS anymore, it is now using the "Podman Machine OS" distributed using OCI So one would run |
@afbjorklund Thanks -- shouldnt podman come baked in with a default machine like before that "just works" though ? More over when doing this:
This statement "ostree-unverified-registry" by using the word "unverified" feels a bit unsecure though it is probably OK i guess ?? Never saw the word unverified before in the context of podman machine/ostree |
This is a separate issue, as far as I know it is supposed to be signed and verified EDIT: I mean eventually, it should... Probably isn't now? |
Thanks again for your reply @afbjorklund ! The issue is not automatic updates (which used to happen via "zincati") but manual updates via When I do:
I get the Podman Machine OS as expected:
But when I try to upgrade it manually like so:
I get this skopeo error. |
Right, the documentation needs to be updated (to use |
@baude PTAL again, can you please fix the image name in the images? |
I believe this is a fairly important issue because podman core machines are no longer updated as they used to be. People are still greeted by an error when doing The workaround is to Am I missing something ? Have people moved away from Is there a blocker to having this ticket being resolved ? Sorry for all these questions but I'm surprised by the still open status of this ticket. I would guess a lot of people would be using podman on macOS at least ! |
@baude PTAL and fix this |
@Luap99 -- Is there someone else that can be pinged ? |
As was pointed out, This can and should get better in the future. |
Can anybody point to a podman resource on the internet which confirms the canonical URL for the machine OS image ? It's good to have this documented somewhere in official podman materials. I couldn't find this myself. It just increases confidence when downloading the image. The (main) fedora project itself has great documentation on Fedora Desktop/Sever images download, image shasums etc. A short note for podman saying what the official distribution link for podman machine os images would be helpful. |
It is in the source code -> podman/pkg/machine/ocipull/ociartifact.go Line 29 in b2e6d53
If you follow to the canonical sources as I indicated, you can see all the sha sums you want. But I think we have a use case issue here. This is all supposed to automatic and not require user intervention. Updates are a feature we are working on. This stuff is meant to be appliance-like and on top of that --- potentially ephemeral in nature. If you would like to complain about this, please come to one of our community meetings and you can let me have it there. I'm actually glad you are passionate about it. Of course, contributions are also welcome too! |
Our docs still say to use Otherwise I agree we are still building out or automation in https://github.com/containers/podman-machine-os at the moment, once that is all in place we can properly automate most of this and work on the upgrade flow in the client. |
I think the new update mechanism could use some more (philosophical) documentation as well. Now it says: "By default, the VM distribution is Fedora CoreOS <Testing> except for WSL which is based on a custom Fedora image. While Fedora CoreOS upgrades come out every 14 days, the automatic update mechanism Zincata <sic> is disabled by Podman machine" "Fedora CoreOS upgrades come out every 14 days and are detected and installed automatically." So the OS itself is automatically updated, but the updates have been disabled? Could need a little "why" there. |
this should be fixed in 5.3 ... more to come but the manual commands work. |
@baude I did a cursory look at the release notes -- nothing caught my eye regarding the problems discussed in this github issue -- can you share the improvements in 5.3 regarding upgrading the core machine if possible ? |
the core of the problem is the ostree reference embedded into podman machine's OS. This is nothing podman related per'se. If you run the rpm-ostree commands as was posted in the original issue writeup, they should now work |
Issue Description
podman machine ssh 'sudo rpm-ostree upgrade --check'
failed with errorerror: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: reading manifest 5.0 in quay.io/containers/podman-machine-os: unauthorized: access to the requested resource is not authorized
Steps to reproduce the issue
Steps to reproduce the issue
podman machine init
, macOS 14.4.1 w/ podman 5.0.2 from HomeBrew.podman machine ssh 'sudo rpm-ostree upgrade --check'
.Describe the results you received
error: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: reading manifest 5.0 in quay.io/containers/podman-machine-os: unauthorized: access to the requested resource is not authorized
Describe the results you expected
It should output list of available updates.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: