Second Pulp 3 yum repo sync "empties" the repository
James and I have this in our dev envs:
- sync a yum repo (I was using pulp3) and note its content counts
- set katello_applicability to 'true' in config/settings.plugins.d/katello.yml
- sync the above repo again, notice its content counts have been cleared out
I think this is the same issue: https://community.theforeman.org/t/katello-3-16-rc4-repository-synchronisation-issues/19593 : empty repo on second synchronization.
What I have seen is that on 3.15 the /var/lib/pulp directory contains:
On a fresh 3.16 RC4, content is missing:
On initial synchronization, all repository rpms are put into docroot and never transferred to content as in 3.15.
I hope this helps a bit.
#4 Updated by Ian Ballou 3 months ago
Katello 3.16 is now using Pulp 3 so it's expected for the content folder to be missing. I have a feeling that the issue is related to a second sync causing the repo's Pulp 3 version_href to change incorrectly in Katello. The incorrect version_href would explain the empty content units for the repo. Just an idea, we'll have to test it.
Since Steven M saw this issue without touching katello_applicability, it might not be related to that setting.
#5 Updated by Ian Ballou 3 months ago
After a quick check, it appears that the second sync is incrementing the version_href from version 1 to 2. The repo version 2 is empty, so no content is indexed and the repo appears to be empty. We'll just need to stop that version_href from changing incorrectly.