Description of problem:
When trying to sync images from registry-1.docker.io to satellite, it fails with an error.
Version-Release number of selected component (if applicable):
6.14
How reproducible:
100%
Steps to Reproduce:
1. Create a docker-type repo:
--------------------------------------------
- hammer repository info --id 82
Id: 82
Name: elasticsearch
Label: elasticsearch
Description:
Organization: RedHat
Red Hat Repository: no
Content Type: docker
Content Label: RedHat_Convert2RHEL_elasticsearch
Mirroring Policy: Content Only
Url: https://registry-1.docker.io
Publish Via HTTP: yes
Published At: satellite.example.com/redhat-convert2rhel-elasticsearch
Relative Path: redhat-convert2rhel-elasticsearch
Download Policy: immediate
Upstream Repository Name: elasticsearch
Container Image Tags Filter:
Container Repository Name: redhat-convert2rhel-elasticsearch
HTTP Proxy:
HTTP Proxy Policy: global_default_http_proxy
Product:
Id: 308
Name: Convert2RHEL
GPG Key:
Sync:
Status: Warning
Last Sync Date: about 1 hour
Created: 2024/01/09 20:15:29
Updated: 2024/01/10 15:19:45
Content Counts:
Container Image Manifest Lists: 0
Container Image Manifests: 0
Container Image Tags: 0
--------------------------------------------
2. Try to sync it.
Actual results:
Katello::Errors::Pulp3Error
{'errors': [{'code': ErrorDetail(string='MANIFEST_INVALID', code='parse_error'), 'message': ErrorDetail(string="manifests.2.mediaType: 'application/vnd.docker.distribution.manifest.v2+json' is not one of ['application/vnd.oci.image.manifest.v1+json', 'application/vnd.oci.image.index.v1+json']", code='parse_error'), 'detail': {'digest': ErrorDetail(string='2cadca6c21de5802b085f25532bba11cb893589b64ca8c94d62ac69eec923fad', code='parse_error')}}]}
Expected results:
Content should be synced without any issue.
Additional info:
- external trackers