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 1992329

Summary: Sync of a kickstart repo to the external capsule fails
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: ahumbe, dalley, ggainey, jsherril, lvrtelov, osousa, pcreech, rchan, smallamp, ttereshc
Target Milestone: 6.10.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-pulp-rpm-3.14.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:13:06 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 2021-08-10 21:35:24 UTC
Description of problem:
Sync of a kickstart repo to the external capsule fails with 404 error, missing vmlinuz and initrd.img


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


How reproducible:
always


Steps to Reproduce:
1. Have a Satellite and an external Capsule (immediate policy, Library LCE)
2. Enable and sync a kickstart repo to the Satellite (I used `Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.9` and `Red Hat Enterprise Linux 8 for x86_64 - BaseOS Kickstart 8.4`)
The sync succeeds, but you can see these warnings in the production.log:
2021-08-10T16:12:21 [W|app|a4b83d72] Exception -> #<RestClient::NotFound: 404 Not Found> when retrieving http://satellite.redhat.com/pulp/content/Default_Organization/Library/content/dist/rhel/server/7/7.9/x86_64/kickstart//images/pxeboot/vmlinuz
2021-08-10T16:12:21 [W|app|a4b83d72] Exception -> #<RestClient::NotFound: 404 Not Found> when retrieving http://satellite.redhat.com/pulp/content/Default_Organization/Library/content/dist/rhel/server/7/7.9/x86_64/kickstart//images/pxeboot/initrd.img
(Are the double slashes in path ok?)
3. Try to sync the repos to the external capsule.


Actual results:
The sync task ends with error, missing the two files from step 2.
404, message='Not Found', url=URL('https://satellite.redhat.com/pulp/content/Default_Organization/Library/content/dist/rhel/server/7/7.9/x86_64/kickstart/images/pxeboot/vmlinuz')


Expected results:
successful sync

Comment 3 Vladimír Sedmík 2021-08-11 14:20:50 UTC
Workaround is to set 'Mirror on Sync' to 'No' for the kickstart repo and resync it (then the missing files are synced properly). Consequential Capsule sync succeeds.

Comment 4 pulp-infra@redhat.com 2021-08-11 15:08:17 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2021-08-11 15:08:19 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2021-08-12 00:26:23 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

Comment 7 Daniel Alley 2021-08-22 02:44:41 UTC
>(Are the double slashes in path ok?)

It's a bug that shouldn't be there, but the paths seem to resolve OK despite them. I would still recommend we hunt that down, as a lower-priority issue.

Comment 8 Daniel Alley 2021-08-22 02:44:58 UTC
There is now an upstream PR

Comment 9 pulp-infra@redhat.com 2021-08-22 03:08:33 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.

Comment 10 pulp-infra@redhat.com 2021-08-23 21:06:49 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

Comment 11 pulp-infra@redhat.com 2021-08-23 21:06:51 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 12 pulp-infra@redhat.com 2021-08-24 20:08:15 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 13 pulp-infra@redhat.com 2021-08-24 21:07:15 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

Comment 14 pulp-infra@redhat.com 2021-08-24 22:08:14 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 15 Vladimír Sedmík 2021-08-31 11:13:23 UTC
Verified on 6.10.0 snap 15 - kickstart repos are synced to the capsule successfully.

Comment 18 errata-xmlrpc 2021-11-16 14:13:06 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.10 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-2021:4702