Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gsalisbury opened this issue May 2, 2024 · 2 comments

Comments

@gsalisbury
Copy link

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
Copy link
Member

partim commented May 6, 2024

Hi!

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

@gsalisbury
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants