Bug 2115970

Summary: Sync container images of existing docker type repositories fail with 404 - Not found
Product: Red Hat Satellite Reporter: Rafael Cavalcanti <rcavalca>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Sam Bible <sbible>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: ahumbe, aperotti, bbuckingham, dalley, dkliban, ggainey, iballou, ipanova, jbhatia, jpasqual, onerleka, rchan, saydas, sbible, vcojot, wclark, wlovaton
Target Milestone: 6.13.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pulp_container-2.10.8 pulp_container-2.9.7 pulp_container-2.8.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2158566 2166749 (view as bug list) Environment:
Last Closed: 2023-05-03 13:21:36 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:
Attachments:
Description Flags
Hotfix RPM for Satellite 6.11.4
none
Hotfix RPM for Satellite 6.11.4 on RHEL8
none
Hotfix RPM for Satellite 6.10.7 none

Description Rafael Cavalcanti 2022-08-05 20:46:12 UTC
Description of problem:

Sync container images of existing docker type repositories fail with 404 - Not found.

The Satellite was upgrade from 6.9 -> 6.10 -> 6.11



Steps to Reproduce:
1. Go to an existing docker type repository
2. Hit the sync button
3. And the task fails with 404 - Not found

Actual results:

Sync fails with:
---
404, message='Not Found', url=URL('https://registry.redhat.io/containers/content/dist/containers/rhel8/multiarch/containers/redhat-rhosp-rhel8-openstack-aodh-api/manifests/1/sha256:2881fb630130572a95d370ba801fec3340d6738c001abcab8d70bfc063ad9cd2?_auth_=exp=1659560550~hmac=caae5ac4009b16a60c419da47fca4713362f5a3c24f6f6d6f288476a31f96161')
---


Expected results:

Sync should finish with success.

Additional info:

We observed that on a Satellite 6.9, syncing the same repository(URL Registry/URL Repository), it works.
Also, creating an new repository on the Satellite 6.11 with the same URL Registry/URL Repository the sync works as expected.
Not sure if the Satellite is being affected by this change -> https://access.redhat.com/articles/6138332

Comment 3 Ina Panova 2022-08-11 14:47:36 UTC
Is there is a reproducer? This error should not be seen during sync as long as manifest lists that are being served from RH registry do not contain reference for schema1 digest.

Comment 32 wclark 2023-01-16 14:36:07 UTC
Created attachment 1938365 [details]
Hotfix RPM for Satellite 6.11.4

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.11.4 server

2. Download the hotfix RPM matching your Satellite and RHEL version and copy it to Satellite server

3. # yum install ./tfm-pulpcore-python3-pulp-container-2.9.2-2.HOTFIXRHBZ2115970.el7pc.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 33 wclark 2023-01-16 14:38:54 UTC
Created attachment 1938366 [details]
Hotfix RPM for Satellite 6.11.4 on RHEL8

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.11.4 server on RHEL8

2. Download the hotfix RPM matching your Satellite and RHEL version and copy it to Satellite server

3. # dnf install ./python38-pulp-container-2.9.2-2.HOTFIXRHBZ2115970.el8pc.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 34 wclark 2023-02-01 02:17:20 UTC
Created attachment 1941448 [details]
Hotfix RPM for Satellite 6.10.7

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.10.7 server

2. Download the hotfix RPM matching your Satellite and RHEL version and copy it to Satellite server

3. # yum install ./python3-pulp-container-2.8.4-0.2.HOTFIXRHBZ2115970.el7pc.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 35 Sam Bible 2023-02-28 15:57:38 UTC
Verified on 6.13 - Snap 12

Steps to Reproduce:

This issue wasn't able to be reliably reproduced, due to issues mentioned in comments above. 
However, in this version of Satellite, the pulp container has been updated to include the fix(2.14 on satellite, fixed in 2.9.7), and in comments above this fix
did seem to resolve the issue. 
Verifying this based on those pieces of information.

Comment 38 errata-xmlrpc 2023-05-03 13:21:36 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 (Important: Satellite 6.13 Release), 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/RHSA-2023:2097