We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Trying to pull an image with old manifest schema using pull-through caching will fail in the first execution:
('pulp [1d3e7a1770b046159c5efc4561c64d4d]: ::ffff:127.0.0.1 - - [12/Jul/2024:13:00:54 +0000] "GET /v2/docker-cache/pulp/redis/manifests/latest HTTP/1.0" 302 0 "-" "containers/5.28.0 (github.com/containers/image)"',) [2024-07-12 13:00:55 +0000] [4736] [ERROR] Error handling request Traceback (most recent call last): ... File "/src/pulp_container/pulp_container/app/registry.py", line 452, in init_pending_content if manifest_data["mediaType"] in (MEDIA_TYPE.MANIFEST_V2, MEDIA_TYPE.MANIFEST_OCI) KeyError: 'mediaType'
To Reproduce Steps to reproduce the behavior:
REMOTE_HREF=$(curl -sH 'content-type: application/json' -XPOST http://localhost:5001/pulp/api/v3/remotes/container/pull-through/ -d '{"name": "foo", "url": "https://quay.io"}' | jq .pulp_href) curl -H 'content-type: application/json' -XPOST http://localhost:5001/pulp/api/v3/distributions/container/pull-through/ -d '{"remote": '${REMOTE_HREF}', "name": "docker-cache", "base_path": "docker-cache"}'
podman pull pulp-container:5001/docker-cache/pulp/redis:latest --tls-verify=false
Expected behavior It should not raise the KeyError exception and work on the first try.
KeyError
Additional context Trying to pull the same content again works.
The text was updated successfully, but these errors were encountered:
Fix a pull-through cache error with old manifests
686dc69
fixes: pulp#1700
8d19dc8
1075b43
git-hyagi
Successfully merging a pull request may close this issue.
Describe the bug
Trying to pull an image with old manifest schema using pull-through caching will fail in the first execution:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should not raise the
KeyError
exception and work on the first try.Additional context
Trying to pull the same content again works.
The text was updated successfully, but these errors were encountered: