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.
Copy and pasted from the Pulp BZ to support this: https://bugzilla.redhat.com/show_bug.cgi?id=2135215
"""
Description of problem:
Some web servers are configured to redirect on a 404 error while requesting .treeinfo or treeinfo files. Pulp3 expects a file or a 404 error and complains if it is something else:
Katello::Errors::Pulp3Error: Treeinfo file should have INI format
Although it's not a pulp3 fault. As it was described in https://bugzilla.redhat.com/show_bug.cgi?id=2046195#c1 such web servers are misconfigured. However, we should have an option to ignore such replies or all malformed treeinfo files to continue syncing such repositories.
See more details in the BZ mentioned above.
"""
Pulp added a way to skip .treeinfo file syncing. Now, Katello needs to add support for skipping them as well. We should add another check box on the repository page with an explanation of why you may want to skip syncing .treeinfo files.
This affects all Satellite versions with Pulp 3.
Here's an explanation from Grant: https://bugzilla.redhat.com/show_bug.cgi?id=2135215#c10
The error from Pulp looks like: raise TypeError(_(\"Treeinfo file should have INI format\"))\n",
We can probably catch that error and tell users to skip the .treeinfo syncing.
Verified in 6.14.0 snap 4.0.
Steps to verify:
0) Enable some RH Kickstart repo (BaseOS in case of RHEL8 and higher).
1) Set 'Ignore treeinfo' of that repository to 'Yes', try to sync it (try optimized, complete).
2) Retry with different mirroring (all but 'Complete Mirroring') and download policies.
3) Set 'Ignore treeinfo' of that repository to 'No' and resync.
Expected / observed results:
1) Sync succeeded and the RPM content was available at the Published_at url, however the treeinfo file was missing, as well as the KS related content.
2) Sync succeeded for all allowed combinations and proper validation error was shown when attempted to set 'Treeinfo ignore' && 'Complete mirroring'
3) Sync succeeded and the treeinfo file and the KS related content was synchronized.
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.14 security and bug fix update), 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:6818