Description of problem: When syncing a repository, ModuleStreamErratumPackages aren't indexed until the second instance of repository indexing. This causes issues with content view publishing for instance, because module streams will not be tied to their errata. Version-Release number of selected component (if applicable): Satellite 6.12 How reproducible: Always Steps to Reproduce: 1. Sync a repo like "Advanced Virtualization for RHEL 8 x86_64 RPMs" 2. Go into the foreman console and try `::Katello::ModuleStreamErratumPackage.all`. Actual results: The result will be empty assuming that this is tested on a clean Satellite install. Expected results: ModuleStreamErratumPackages are returned. Additional info: This can be worked around by either publishing the CV again, or reindexing the repository.
Created redmine issue https://projects.theforeman.org/issues/35337 from this bug
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35337 has been resolved.
irb(main):003:0> ::Katello::ModuleStreamErratumPackage.count => 10679 Synced "Advanced Virtualization for RHEL 8 x86_64 RPMs" > ::Katello::ModuleStreamErratumPackage.count => 16332
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:8506