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 - Sync of a kickstart repo to the external capsule fails
Summary: Sync of a kickstart repo to the external capsule fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.10.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-10 21:35 UTC by Vladimír Sedmík
Modified: 2021-11-16 14:13 UTC (History)
10 users (show)

Fixed In Version: python-pulp-rpm-3.14.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:13:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 9270 0 High CLOSED - CURRENTRELEASE Backport #9230 "Syncing kickstart trees with mirror=true does not properly include images in publication" to 3.14.z 2021-08-24 22:08:12 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:13:18 UTC

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


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