Bug 2115970 - Sync container images of existing docker type repositories fail with 404 - Not found
Summary: Sync container images of existing docker type repositories fail with 404 - No...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.13.0
Assignee: satellite6-bugs
QA Contact: Sam Bible
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-05 20:46 UTC by Rafael Cavalcanti
Modified: 2023-05-03 13:21 UTC (History)
17 users (show)

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:
Clone Of:
: 2158566 2166749 (view as bug list)
Environment:
Last Closed: 2023-05-03 13:21:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Hotfix RPM for Satellite 6.11.4 (229.80 KB, application/x-rpm)
2023-01-16 14:36 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.11.4 on RHEL8 (221.71 KB, application/x-rpm)
2023-01-16 14:38 UTC, wclark
no flags Details
Hotfix RPM for Satellite 6.10.7 (214.76 KB, application/x-rpm)
2023-02-01 02:17 UTC, wclark
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github pulp pulp_container issues 974 0 None closed Repo sync from RH registry fails with 404 2022-09-23 18:49:35 UTC
Red Hat Issue Tracker SAT-14223 0 None None None 2022-12-05 18:34:21 UTC
Red Hat Knowledge Base (Solution) 6994373 0 None None None 2023-01-18 17:20:49 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:21:52 UTC

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


Note You need to log in before you can comment on or make changes to this bug.