Bug #30389
closed
Second Pulp 3 yum repo sync "empties" the repository
Added by Jonathon Turel over 4 years ago.
Updated over 4 years ago.
Description
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
- Subject changed from Setting katello_applicability to true empties repos on on subsequent sync to Setting katello_applicability to true empties repos on subsequent sync
- Target version set to Katello 3.16.0
- Triaged changed from No to Yes
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:
0005_puppet_module_name_change.txt
assets
content
docroot
katello-export
packages
published
static
tmp
uploads
On a fresh 3.16 RC4, content is missing:
0005_puppet_module_name_change.txt
assets
docroot
katello-export
packages
published
static
tmp
uploads
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.
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.
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.
- Subject changed from Setting katello_applicability to true empties repos on subsequent sync to Second Pulp 3 yum repo sync "empties" the repository
This is a pulp issue, we'll track this here to ensure it gets fixed in 3.16 or we add a workaround
- Status changed from New to Ready For Testing
- Assignee set to Samir Jha
- Pull request https://github.com/Katello/katello/pull/8873 added
- Pull request https://github.com/Katello/katello/pull/8869 added
- Fixed in Releases Katello 3.18.0 added
- Status changed from Ready For Testing to Closed
- Pull request deleted (
https://github.com/Katello/katello/pull/8869)
- Related to Bug #30532: Pulp_rpm 3.5 does not return Package Groups tied to Package Environments added
Also available in: Atom
PDF