I have a Content View with 8 repos. In the Content View, I have 1 filter that is configured for 1 “affected repositories”, however, after publishing, it is removing packages from other repositories in my Content View.
Here are screenshots of Include Filter applied to 1 repo:
It was installed clean with Katello 3.16. It looks like pulp3 from what i see.
Products > Repos appears to pull all the repository packages without issue. The Repo issue occurs only on Content View versions that have a Filter.
I have confirmed that it happens with both Include and Exclude filters. To elaborate: after the above screenshot, I removed the OSSEC filter, and created a new filter that “Excludes” rhn-client-tools packages from all 8 repositories in Content View. After publishing, I still see many repos in my new Version are empty, just like previous screenshot.
@barn I attempted to reproduce this with Katello 3.16.1.2 and Katello 3.17.0.rc2.2, using a wildcard “*” in the package rule for an include filter. The problem was just as you described.
I then attempted the same with the nightly katello, and did not have the same issue. The next release is 3.18, and the release candidate which is targeted for a week after the next Foreman release, November 4, so around November 11. That release date is subject to change.
@barn after some discussion with @jjeffers it turns out we haven’t been able to reproduce on 3.16 or 3.17!
After our reproducer attempts, i suspect this doesn’t actually have to do with filters applying incorrectly and has more to do with a copying bug when there is a lot of content. Do you still see the problem if you remove all filters and then:
create a new exclude filter that applies to all repos
add some package that is only in one repository (some random scl package for example)
and then publish. If you still see ‘empty’ repos, then i think the problem has more to do with publish a large cv with a filter in place.
In the meantime i’m gonna try to reproduce locally with lots of content
Dropping manual patch steps @Justin_Sherrill shared for reference. I haven’t been able to test it yet though as I ran into a separate roadblock so I have not attempted these steps yet: