Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2236070

Summary: Bump pulp_container package to relax mediaType validation
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Shweta Singh <shwsingh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.13.4CC: ehelms, osousa, rlavi, shwsingh
Target Milestone: 6.13.6Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: pulp_container 2.14.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-21 21:27:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vladimír Sedmík 2023-08-30 09:43:12 UTC
Description of problem:

Sync of container repos with different mediaTypes from quay fails with this error:
'errors': [{'code': ErrorDetail(string='MANIFEST_INVALID', code='parse_error'), 'message': ErrorDetail(string="layers.0.mediaType: 'application/vnd.dev.cosign.simplesigning.v1+json' is not one of ['application/vnd.oci.image.layer.v1.tar', 'application/vnd.oci.image.layer.v1.tar+gzip', 'application/vnd.oci.image.layer.v1.tar+zstd', 'application/vnd.oci.image.layer.nondistributable.v1.tar', 'application/vnd.oci.image.layer.nondistributable.v1.tar+gzip', 'application/vnd.oci.image.layer.nondistributable.v1.tar+zstd']

Example of repos and their media types:
jetstack/cert-manager-webhook -> 'application/vnd.dev.cosign.simplesigning.v1+json'
argoproj/argocd -> 'application/vnd.dsse.envelope.v1+json'
team-helium/miner -> 'application/vnd.in-toto+json'
prometheus-operator/prometheus-config-reloader -> 'application/vnd.dev.cosign.simplesigning.v1+json'
prometheus-operator/prometheus-operator -> 'application/vnd.dev.cosign.simplesigning.v1+json'
jcmoraisjr/haproxy-ingress -> 'application/vnd.in-toto+json'
cilium/cilium -> 'application/vnd.dev.cosign.simplesigning.v1+json'

This is caused by validation for uploaded and synced manifest JSON content added in pulp_container 2.14.0 (included in Satellite 6.13.0 snap 2).

Later in pulp_container 2.14.4 the validation was relaxed to address the issue, see https://docs.pulpproject.org/pulp_container/changes.html#id15

This BZ is a request to bump the pulp_container version to 2.14.4 in 6.13.4 or 6.13.z.


Version-Release number of selected component (if applicable):
6.13.4 snap 1


How reproducible:
always


Steps to Reproduce:
1. Try to sync one of the repos above.


Actual results:
Similar error as above.


Expected results:
No errors, successful sync.


Additional info:
The bump should also resolve this BZ https://bugzilla.redhat.com/show_bug.cgi?id=2181254, which was tagged for 6.13.z+ but not cloned yet.

Comment 4 Shweta Singh 2023-10-31 09:52:31 UTC
Verified.

Version Tested: 6.13.6 Snap 1.0

Verification Steps:
1. Upload manifest and add any of the custom repos mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=2236070#c0.
2. Try to synchronize the custom repository added.

Result:
Repository was successfully synchronized without any error.

Comment 10 errata-xmlrpc 2023-11-21 21:27:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.13.6 Async Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:7461