Bug 2116375

Summary: Even in 6.11.1, sync summary email notification shows the incorrect summary for newly added errata.
Product: Red Hat Satellite Reporter: Pavel Moravec <pmoravec>
Component: Errata ManagementAssignee: wclark
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.11.1CC: ahumbe, arsingh, damoore, dhjoshi, momran, mvanderw, onerleka, r1ch11, sadas, vsedmik, wclark
Target Milestone: 6.13.0Keywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2158569 2166760 (view as bug list) Environment:
Last Closed: 2023-05-03 13:21:36 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:
Attachments:
Description Flags
Hotfix RPM for Satellite 6.10.7
none
Hotfix RPM for Satellite 6.11.4 on RHEL7
none
Hotfix RPM for Satellite 6.11.4 on RHEL8
none
Hotfix RPM for Satellite 6.12.0 none

Description Pavel Moravec 2022-08-08 12:25:47 UTC
Description of problem:
Even with https://bugzilla.redhat.com/show_bug.cgi?id=2044314 fixed, there are some cases when katello wrongly calculates list of errata to send in email notification.

Particular example: RHSCL 7Server prior RHSA-2022:5759 released (i.e. have CDN content prior 2022-07-28) and after he errata released. Syncing the repo means "Added Rpms: 22, Errata: 1" but notification mail to contain 146 errata.

Explanation provided in https://bugzilla.redhat.com/show_bug.cgi?id=2102867#c2, internal reproducer available at https://bugzilla.redhat.com/show_bug.cgi?id=2102867#c4 .

The #c2 also suggests a potential fix.

I am raising a new BZ since I cant reopen the https://bugzilla.redhat.com/show_bug.cgi?id=2044314 one.


Version-Release number of selected component (if applicable):
6.11.1


How reproducible:
100% with reproducer per https://bugzilla.redhat.com/show_bug.cgi?id=2102867#c4


Steps to Reproduce:
1. Have RHSCL repo with metadata per https://bugzilla.redhat.com/show_bug.cgi?id=2102867#c4 , sync it
2. Update the metadata to the newest, sync it
3. Check errata mail sent and also the postgres queries from https://bugzilla.redhat.com/show_bug.cgi?id=2102867#c2 .


Actual results:
3. Mail with 146 errata sent, psql queries like per https://bugzilla.redhat.com/show_bug.cgi?id=2102867#c2.


Expected results:
3. Mail with 1 errata sent only.


Additional info:

Comment 2 wclark 2022-08-08 14:28:02 UTC
This appears to be a duplicate of 2105299

*** This bug has been marked as a duplicate of bug 2105299 ***

Comment 3 wclark 2022-09-07 21:23:07 UTC
Re-opening this as the bug is sufficiently different from 2105299

Comment 6 Bryan Kearney 2022-11-01 16:03:27 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35503 has been resolved.

Comment 7 wclark 2022-12-05 12:26:17 UTC
Created attachment 1930053 [details]
Hotfix RPM for Satellite 6.10.7

Hotfix RPM for Satellite 6.10.7

NOTE: This hotfix contains the fixes for the following BZs: 2133615, 2133343, 2044314, 2116375

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.10.7 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # yum install ./tfm-rubygem-katello-4.1.1.60-4.HOTFIXRHBZ2133615.el7sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 8 wclark 2022-12-05 13:15:26 UTC
Created attachment 1930105 [details]
Hotfix RPM for Satellite 6.11.4 on RHEL7

NOTE: This hotfix contains the fixes for the following BZs: 2133615, 2133343, 2116375

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.11.4 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # yum install ./tfm-rubygem-katello-4.3.0.50-2.HOTFIXRHBZ2133615.el7sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 9 wclark 2022-12-05 13:22:11 UTC
Created attachment 1930108 [details]
Hotfix RPM for Satellite 6.11.4 on RHEL8

NOTE: This hotfix contains the fixes for the following BZs: 2133615, 2133343, 2116375

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.11.4 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # dnf install ./rubygem-katello-4.3.0.50-2.HOTFIXRHBZ2133615.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 10 wclark 2022-12-05 13:59:11 UTC
Created attachment 1930116 [details]
Hotfix RPM for Satellite 6.12.0

NOTE: This hotfix contains the fixes for the following BZs: 2133615, 2133343, 2116375

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.12.0 server

2. Download the hotfix RPM attached to this BZ and copy it to Satellite server

3. # dnf install ./rubygem-katello-4.5.0.20-2.HOTFIXRHBZ2133615.el8sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 14 errata-xmlrpc 2023-05-03 13:21:36 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.13 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-2023:2097