Skip to content

Conversation

webknjaz
Copy link
Member

This was caused by a mistake during the initial migration from docker to podman in #181. The original command looked like
docker buildx build --platform linux/arm64 but the redhat-actions/buildah-build action has an input called arch: that we started using. And we've prefixed the passed value with linux/. It would've been fine if we used the platform: input but we didn't. The consequence was that the images we were making were tagged with an additional leading linux/ prefix in the platform metadata which made it look like linux/linux/arm64.

The issue became evident in #648 that attempted to bump the version of cibuildwheel. And the container interaction started failing loudly as this tool started using the --platform option when working with OCI images in v2.21 [1].

ISSUE TYPE
  • Bugfix Pull Request
  • Maintenance Pull Request
  • Packaging Pull Request
ADDITIONAL INFORMATION

Here's what the crash looks like:

  e897bff8bb4b: Pull complete
  Digest: sha256:d1a2a5447db38774458dc669abadcff717eaa2f6ee5d9797144c659a3f4ae60d
  Status: Downloaded newer image for ghcr.io/ansible/pylibssh-manylinux_2_28_x86_64:libssh-v0.9.6
  image with reference ghcr.io/ansible/pylibssh-manylinux_2_28_x86_64:libssh-v0.9.6 was found but does not match the specified platform: wanted linux/amd64, actual: linux/linux/amd64

@webknjaz webknjaz added bug Something isn't working github_actions Pull requests that update Github_actions code labels Mar 18, 2025
@webknjaz webknjaz self-assigned this Mar 18, 2025
This was caused by a mistake during the initial migration from docker
to podman in ansible#181. The original command looked like
`docker buildx build --platform linux/arm64` but the
`redhat-actions/buildah-build` action has an input called `arch:` that
we started using. And we've prefixed the passed value with `linux/`.
It would've been fine if we used the `platform:` input but we didn't.
The consequence was that the images we were making were tagged with an
additional leading `linux/` prefix in the platform metadata which made
it look like `linux/linux/arm64`.

The issue became evident in ansible#648 that attempted to bump the version of
`cibuildwheel`. And the container interaction started failing loudly
as this tool started using the `--platform` option when working with
OCI images in v2.21 [[1]].

[1]: pypa/cibuildwheel#1961
@webknjaz webknjaz force-pushed the maintenance/manylinux-cache-platform-tags branch from 56fbac6 to 4a1047b Compare March 18, 2025 22:53
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Mar 18, 2025
Copy link

Copy link

Congratulations! One of the builds has completed. 🍾

You can install the built RPMs by following these steps:

  • sudo yum install -y dnf-plugins-core on RHEL 8
  • sudo dnf install -y dnf-plugins-core on Fedora
  • dnf copr enable packit/ansible-pylibssh-692
  • And now you can install the packages.

Please note that the RPMs should be used only in a testing environment.

@webknjaz webknjaz marked this pull request as ready for review March 18, 2025 22:58
@webknjaz webknjaz merged commit adfd06b into ansible:devel Mar 18, 2025
25 of 79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR bug Something isn't working github_actions Pull requests that update Github_actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant