Skip to content

fix: de pull fails for images with digest in URI #1347

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

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

ttuffin
Copy link
Contributor

@ttuffin ttuffin commented Jun 12, 2025

DE image pulls will fail when there is a sha digest in the URI. This fix implements a change to the pull logic to split the image URI and pass the repo and tag to podman-py as separate params, as documented in the podman-py docs

Test steps

  1. Create three DE's with the following URI's:
    quay.io/ansible/ansible-rulebook
    quay.io/ansible/ansible-rulebook:main
    quay.io:443/ansible/ansible-rulebook@sha256:756dd6a40b62975ea10d83a577ed6b1cddd545de17d9fb56b3d4e80e166826df

  2. Create three activations using those DE's. All activations should complete

https://issues.redhat.com/browse/AAP-47629

@ttuffin ttuffin requested a review from a team as a code owner June 12, 2025 19:51
@ttuffin ttuffin force-pushed the AAP-47629_image_digest_pull_fails branch from 83b2020 to ab26a09 Compare June 12, 2025 19:52
@ttuffin ttuffin marked this pull request as draft June 12, 2025 20:23
@ttuffin ttuffin force-pushed the AAP-47629_image_digest_pull_fails branch from ab26a09 to 2933d12 Compare June 13, 2025 07:18
@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.91%. Comparing base (7e2b6bf) to head (ba7588b).

@@           Coverage Diff           @@
##             main    #1347   +/-   ##
=======================================
  Coverage   93.91%   93.91%           
=======================================
  Files         319      320    +1     
  Lines       18782    18793   +11     
=======================================
+ Hits        17639    17650   +11     
  Misses       1143     1143           
Flag Coverage Δ
unit-int-tests-3.11 93.85% <100.00%> (+<0.01%) ⬆️
unit-int-tests-3.12 93.91% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/aap_eda/services/activation/engine/podman.py 94.32% <100.00%> (+0.05%) ⬆️
src/aap_eda/utils/podman.py 100.00% <100.00%> (ø)
...egration/services/activation/engine/test_podman.py 98.73% <100.00%> (+0.01%) ⬆️
...ts/integration/services/activation/engine/utils.py 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ttuffin ttuffin force-pushed the AAP-47629_image_digest_pull_fails branch 3 times, most recently from c8b9403 to 5617852 Compare June 13, 2025 09:12
@ttuffin ttuffin marked this pull request as ready for review June 13, 2025 09:40
@ttuffin ttuffin force-pushed the AAP-47629_image_digest_pull_fails branch 4 times, most recently from 8eb9e3d to d16399f Compare June 13, 2025 13:10
@Alex-Izquierdo
Copy link
Collaborator

Alex-Izquierdo commented Jun 13, 2025

@ttuffin you can refer containers/podman-py#555

@ttuffin ttuffin force-pushed the AAP-47629_image_digest_pull_fails branch from d16399f to 6e258ed Compare June 13, 2025 13:16
Alex-Izquierdo
Alex-Izquierdo previously approved these changes Jun 13, 2025
DE image pulls will fail when there is a sha digest
in the URI. This fix implements a change to the pull
logic to split the image URI and pass the repo and tag
to podman-py as separate params, as documented.
@ttuffin ttuffin force-pushed the AAP-47629_image_digest_pull_fails branch from 6e258ed to 91cfb71 Compare June 13, 2025 13:44
@ttuffin ttuffin requested review from Alex-Izquierdo and a team June 13, 2025 13:45
Copy link

@ttuffin ttuffin merged commit 72db4ce into main Jun 16, 2025
7 checks passed
@ttuffin ttuffin deleted the AAP-47629_image_digest_pull_fails branch June 16, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants