Bug 2109298

Summary: ModuleStreamErratumPackages aren't indexed at first repository syncing
Product: Red Hat Satellite Reporter: Ian Ballou <iballou>
Component: RepositoriesAssignee: Samir Jha <sajha>
Status: CLOSED ERRATA QA Contact: Cole Higgins <chiggins>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.12.0CC: ahumbe, paji, pcreech
Target Milestone: 6.12.0Keywords: Regression, Triaged, WorkAround
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.5.0.5-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-16 13:34:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2106091    

Description Ian Ballou 2022-07-20 21:58:07 UTC
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.

Comment 3 Samir Jha 2022-08-05 15:19:39 UTC
Created redmine issue https://projects.theforeman.org/issues/35337 from this bug

Comment 4 Bryan Kearney 2022-08-11 20:05:00 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35337 has been resolved.

Comment 8 Partha Aji 2022-09-29 17:45:42 UTC
irb(main):003:0> ::Katello::ModuleStreamErratumPackage.count
=> 10679

Synced  "Advanced Virtualization for RHEL 8 x86_64 RPMs"

> ::Katello::ModuleStreamErratumPackage.count
=> 16332

Comment 12 errata-xmlrpc 2022-11-16 13:34:39 UTC
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