Repository Synchronization Issues

We are using Foreman 2.2.0-rc1 and Katello 3.17-RC1. We have been trying to sync-up two repositories without success. We also tried this on Katello 3.16 and Foreman 2.1. The failure we are getting as follows:

EPEL Playground YUM Repo: http://mirrors.sonic.net/epel/playground/8/Everything/x86_64/os/
Error We are getting: Katello::Errors::Pulp3Error: value too long for type character varying(20)
This seems to be a Schema Problem.

Jenkins YUM Repo: https://pkg.jenkins.io/redhat-stable/
Error: Katello::Errors::Pulp3Error: 404, message=‘Not Found’, url=URL(‘https://get.jenkins.io/redhat-stable/jenkins-2.222.3-1.1.noarch.rpm’)

This is an older version of Jenkins and for some reason the repo data is misaligned with the manifest. Therefore the whole product is not syncing and not available. It should be more forgiving when it comes to such issues.

Any ideas how to overcome the above issues?

Hi mislek!

I’ll see if i can reproduce the epel playground repo, that sounds like a pulp bug but i’ll confirm before we open an issue.

For the 2nd issue, the pulp team has taken a stance that an error should cause the repo to not be synced at all. Would you mind filing an issue over on their issue tracker arguing against this or at leats offering the user the option of behavior? https://pulp.plan.io/issues/new

One workaround for this is to change the download policy to ‘on_demand’ for this repo (on the repo details page) and then sync. Pulp won’t actually download the rpms until a client requests them, and so i believe the sync will complete.

1 Like

I was able to reproduce the 2nd issue and filed : https://pulp.plan.io/issues/7498

I think it would be more impactful if you can file an issue for the first!