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 2174912 - [RFE] add ability to skip syncing .treeinfo files
Summary: [RFE] add ability to skip syncing .treeinfo files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.14.0
Assignee: Ian Ballou
QA Contact: Vladimír Sedmík
URL:
Whiteboard:
Depends On: 2135215
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-02 15:50 UTC by Ian Ballou
Modified: 2023-11-08 14:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:18:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 36411 0 Normal Ready For Testing Add ability to skip syncing treeinfo files 2023-05-17 21:46:01 UTC
Red Hat Issue Tracker SAT-16978 0 None None None 2023-05-17 20:06:09 UTC
Red Hat Knowledge Base (Solution) 7033396 0 None None None 2023-09-14 15:07:57 UTC
Red Hat Product Errata RHSA-2023:6818 0 None None None 2023-11-08 14:19:10 UTC

Description Ian Ballou 2023-03-02 15:50:54 UTC
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

Comment 1 Ian Ballou 2023-04-05 16:00:26 UTC
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.

Comment 6 Bryan Kearney 2023-05-18 00:03:11 UTC
Upstream bug assigned to iballou

Comment 7 Bryan Kearney 2023-05-18 00:03:13 UTC
Upstream bug assigned to iballou

Comment 8 Bryan Kearney 2023-05-23 20:02:57 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36411 has been resolved.

Comment 9 Vladimír Sedmík 2023-06-16 12:39:25 UTC
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.

Comment 12 errata-xmlrpc 2023-11-08 14:18:58 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.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


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