Skip to content

Conversation

@matejonnet
Copy link

To workaround the error "Digest of source image's manifest would not match destination reference", when image is saved using sha256.

To workaround the error "Digest of source image's manifest would not match destination reference", when image is saved using sha256.
subprocess.check_output(["podman", "save", "--format=oci-archive", "--quiet",
"-o", os.path.join(outputdir, "bootstrap.tar"),
image_specification])
bootstrap_data["id"]])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the patch!

It's strange this is needed only with the UBI 9 image, but not with Fedora. That said, are we doing something wrong with podman save, or the subsequent podman pull oci-archive:..? Is this a buggy OCI image? Would you mind reporting this against the Podman project?

If this patch works, it works, and the change seems safe. However, is it possible that podman pull could download an image with a different bootstrap_data["id"] (e.g., due to a race condition or a long delay between generating the lock file and downloading), leading to a subsequent podman save failure (or even worse, different (cached) image being stored)?

@matejonnet
Copy link
Author

Podman bug report: containers/podman#27323

@praiskup praiskup added the konflux This issue/PR is related to konflux label Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

konflux This issue/PR is related to konflux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants