Bug 2055495 - If Kickstart 7.X repos are being synced to Capsule 7.0 then Pulp 3 tries to sync a non-existant HighAvailability and ResilientStorage repo as well and gets 404 fnot found
Summary: If Kickstart 7.X repos are being synced to Capsule 7.0 then Pulp 3 tries to s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.11.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: 6.11.0
Assignee: satellite6-bugs
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-17 05:53 UTC by Sayan Das
Modified: 2022-07-05 14:33 UTC (History)
8 users (show)

Fixed In Version: pulp_rpm-3.17.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 14:33:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pulp pulp_rpm issues 2373 0 None closed Getting HTT 404 when trying to download a package from an addon repo 2022-03-02 18:35:53 UTC
Red Hat Product Errata RHSA-2022:5498 0 None None None 2022-07-05 14:33:26 UTC

Description Sayan Das 2022-02-17 05:53:07 UTC
Description of problem:

When a kickstart 7.X repo is being synced for the first time or forcefully republished or getting republished and re-synced due to updated content in it, The pulp on capsule server reads the treeinfo files for each of those repos and then assumes there is a ResilientStorage and HighAvailability addons repo present which it needs to sync.

But since those are not actually present as separate repos but part of the existing kickstart repo itself, pulp gets a 404 not found on those URL's.



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

Satellite 7 (snap 9 )  and Satellite 6.10 [ Pulp3 ]


How reproducible:

Always

Steps to Reproduce:
1. Install a satellite and capsule 7.0 or 6.10
2. Enable RHEL 7.9 kickstart repo on satellite and sync it.
3. Create a Test LCE on satellite and TestView CV. 
4. Associate the Test LCE to capsule for content syncing.
5. Add the kickstart repo to TestView CV, Publish to Library and promote to Test LCE.
6. Monitor /var/log/messages on capsule to observe the capsule auto-sync task. 



Actual results:

The sync is successful but pulpcore logs this is syslog:

Feb 17 00:33:40 capsule70 pulpcore-api: pulp [039160ce-a678-40c4-afb1-0b1c1c1205e7]:  - - [17/Feb/2022:05:33:40 +0000] "GET /pulp/api/v3/tasks/423bf233-85fd-433d-9854-2987ffb71425/ HTTP/1.1" 200 1042 "-" "OpenAPI-Generator/3.16.0/ruby"
Feb 17 00:33:40 capsule70 pulpcore-worker-2: Giving up download_wrapper(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://saydas-rhsat.syslab.pnq2.redhat.com/pulp/content/RedHat/Test/TestView/content/dist/rhel/server/7/7.9/x86_64/kickstart/addons/HighAvailability/repodata/repomd.xml'))
Feb 17 00:33:40 capsule70 pulpcore-worker-2: pulp [039160ce-a678-40c4-afb1-0b1c1c1205e7]: backoff:ERROR: Giving up download_wrapper(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://saydas-rhsat.syslab.pnq2.redhat.com/pulp/content/RedHat/Test/TestView/content/dist/rhel/server/7/7.9/x86_64/kickstart/addons/HighAvailability/repodata/repomd.xml'))
Feb 17 00:33:40 capsule70 pulpcore-worker-2: pulp [039160ce-a678-40c4-afb1-0b1c1c1205e7]: pulp_rpm.app.tasks.synchronizing:WARNING: Unable to sync sub-repo 'HighAvailability' from treeinfo.
Feb 17 00:33:40 capsule70 pulpcore-worker-2: Giving up download_wrapper(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://saydas-rhsat.syslab.pnq2.redhat.com/pulp/content/RedHat/Test/TestView/content/dist/rhel/server/7/7.9/x86_64/kickstart/addons/ResilientStorage/repodata/repomd.xml'))
Feb 17 00:33:40 capsule70 pulpcore-worker-2: pulp [039160ce-a678-40c4-afb1-0b1c1c1205e7]: backoff:ERROR: Giving up download_wrapper(...) after 1 tries (aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://saydas-rhsat.syslab.pnq2.redhat.com/pulp/content/RedHat/Test/TestView/content/dist/rhel/server/7/7.9/x86_64/kickstart/addons/ResilientStorage/repodata/repomd.xml'))
Feb 17 00:33:40 capsule70 pulpcore-worker-2: pulp [039160ce-a678-40c4-afb1-0b1c1c1205e7]: pulp_rpm.app.tasks.synchronizing:WARNING: Unable to sync sub-repo 'ResilientStorage' from treeinfo.



Expected results:

We should not see these failures as the URLs pulp had created on their own makes no sense and do not exist anywhere. 



Additional info:

* This was never reproducible in Pulp 2 and with Pulp3 it only happens for RHEL 7.X kickstart repos so far.

* This was visible for many Pulp 3 users\customers and often led to a wrong conclusion and investigation of capsule sync issues.

* I am raising this bug in Sat 7.0 as this is harmless on both 6.10 and 7.0 and even if gets improved later, that's not a big deal but it creates confusion when we see multiple instances of kickstart 7.X repos are being synced to the capsule and for each of those attempts, these many errors will be reported in the logs.

Comment 3 Daniel Alley 2022-03-01 22:01:39 UTC
Ugh the form is being frustrating today.

Tanya, can you confirm that this is the same issue as https://github.com/pulp/pulp_rpm/issues/2373 ?

Comment 4 Tanya Tereshchenko 2022-03-02 18:19:47 UTC
(In reply to Daniel Alley from comment #3)
> Ugh the form is being frustrating today.
> 
> Tanya, can you confirm that this is the same issue as
> https://github.com/pulp/pulp_rpm/issues/2373 ?

Yes, it looks exactly like this issue to me.

Comment 7 Vladimír Sedmík 2022-04-27 09:14:56 UTC
Verified on 6.11.0 snap 17 (and also checked on 6.10.5 snap 2) - following the steps from comment 0 no errors were observed in capsule's /var/log/messages nor in satellite's production.log or journal. The Capsule sync succeeded.

Comment 10 errata-xmlrpc 2022-07-05 14:33:19 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 (Moderate: Satellite 6.11 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-2022:5498


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