NLnetLabs / routinator

An RPKI Validator and RTR server written in Rust
https://nlnetlabs.nl/projects/routing/routinator/
BSD 3-Clause "New" or "Revised" License
465 stars 70 forks source link

Unable to use repo with Red Hat Satellite: Katello::Errors::Pulp3Error: Treeinfo file should have INI format #957

Open gsalisbury opened 6 months ago

gsalisbury commented 6 months ago

Hi, in our environment our servers install packages from our internal Red Hat Satellite server. Normally we have no issue mimicking the configuration of the repository as represented in a repo-definition in Satellite (version 6.13.1). With the routinator repo however for RedHat 9, we run into the problem that Satellite will not synchronize the repository. The error we get is:

Katello::Errors::Pulp3Error: Treeinfo file should have INI format

After looking into it a little, it turns out that yum repository's may contain a file named '.treeinfo', and expects a 404 response if a repository does not contain one. When I send a GET request to https://packages.nlnetlabs.nl/linux/centos/9/main/x86_64/.treeinfo for example I receive a 200 OK response of:

<html>
<head>
<meta http-equiv="Refresh" content="0; url='https://nlnetlabs.nl/packages'" />
<title>packages.nlnetlabs.nl - NLnet Labs software package repository</title>
</head>
<body>
<p>Redirecting...</p>
</body>
</html>

The pulp error is I think from trying to parse that response as an INI file.

Would it be possible to respond with a 404 to any /.treeinfo or /treeinfo GET requests to avoid this issue?

Kind regards, George Salisbury

partim commented 6 months ago

Hi!

We’re looking into whether we can make this work with S3.

gsalisbury commented 5 months ago

Hi, thanks, we've worked around this by upgrading satellite to 6.14.4 which (from version 6.14.1 I think) has an option Ignore treeinfo which can be enabled.