Bug 2044314

Summary: Post upgrade to satellite 6.10, sync summary email notification shows the incorrect summary for newly added errata.
Product: Red Hat Satellite Reporter: Satyajit Das <sadas>
Component: Errata ManagementAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: addubey
Severity: medium Docs Contact:
Priority: medium    
Version: 6.10.0CC: addubey, afeferku, ahumbe, apatel, arsingh, avnkumar, ben.argyle, dhjoshi, hyu, lblicha, mhulan, momran, mvanderw, myoder, osousa, pmoravec, sussen, vivsingh, wclark, zhunting
Target Milestone: 6.11.1Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.3.0.43-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2102867 (view as bug list) Environment:
Last Closed: 2022-07-27 17:27:09 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: 2089580    
Attachments:
Description Flags
Hotfix RPM for Satellite 6.10.6
none
Hotfix RPM (updated for Satellite 6.10.7)
none
Hotfix RPM for Satellite 6.11.0 on RHEL7
none
Hotfix RPM for Satellite 6.11.0 on RHEL8
none
Hotfix RPM for Satellite 6.10.7 none

Description Satyajit Das 2022-01-24 12:08:18 UTC
Description of problem:

Post upgrade to satellite 6.10, sync summary email notification shows the incorrect summary for newly added errata. Instead of showing only newly added errata, it shows all the errata parts of the repository.


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

6.10.z


How reproducible:

100%


Steps to Reproduce:

1. Upgrade from 6.9 to 6.10 / Deploy a new satellite 6.10
2. Enable email notification and subscribe to sync summary
3. Enable rhel-7/8 repository and initiate the sync

Actual results:

Post sync, you will receive sync summary notification, however, in the New Errata section, it will show all the errata parts of the repository, instead of newly added errata. 


Expected results:


 It should contain only the newly added errata, instead of all the errata parts of the repository.

Additional info:

In 6.9 it's working as expected and in 6.10 the behavior is easily reproducible. 

In 6.10 I tried to sync the same repository multiple times and for all the sync summary notifications, I observed it shows all the errata parts of the repository.

Comment 2 Samir Jha 2022-02-08 18:15:43 UTC
Created redmine issue https://projects.theforeman.org/issues/34414 from this bug

Comment 3 Bryan Kearney 2022-02-17 16:06:02 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34414 has been resolved.

Comment 5 Akhil Jha 2022-03-07 07:05:21 UTC
Verified.
Satellite 7.0.0 - 12.0 (RHEL7 and RHEL8)

Comment 17 wclark 2022-06-27 14:13:48 UTC
Moving to POST since both https://projects.theforeman.org/issues/34414 and the newer issue https://projects.theforeman.org/issues/35053 are resolved upstream

Comment 18 wclark 2022-06-28 21:17:20 UTC
Created attachment 1893267 [details]
Hotfix RPM for Satellite 6.10.6

A Hotfix RPM is available, which fixes both the Errata Mail issue described here as well as the Errata Mail issue described in https://bugzilla.redhat.com/show_bug.cgi?id=2089580

INSTALL INSTRUCTIONS:

1. Take a complete backup or snapshot of Satellite 6.10.6 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.57-3.HOTFIXRHBZ2089580.el7sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 19 Pavel Moravec 2022-06-30 07:48:42 UTC
*** Bug 2043045 has been marked as a duplicate of this bug. ***

Comment 21 wclark 2022-07-11 15:40:59 UTC
Created attachment 1896105 [details]
Hotfix RPM (updated for Satellite 6.10.7)

A Hotfix RPM is available, which fixes both the Errata Mail issue described here as well as the Capsule Sync issue described in https://bugzilla.redhat.com/show_bug.cgi?id=2089580

NOTE: https://bugzilla.redhat.com/show_bug.cgi?id=2089580 was fixed in Satellite 6.10.7 so this updated version of the hotfix, which is built for the 6.10.7 branch, only contains the single additional patch needed to resolve the errata mail aspec of that issue.

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-2.HOTFIXRHBZ2089580.el7sat.noarch.rpm --disableplugin=foreman-protector

4. # satellite-maintain service restart

Comment 32 myoder 2022-07-19 15:56:58 UTC
*** Bug 2055410 has been marked as a duplicate of this bug. ***

Comment 37 wclark 2022-07-26 02:18:36 UTC
Created attachment 1899329 [details]
Hotfix RPM for Satellite 6.11.0 on RHEL7

INSTALL INSTRUCTIONS:

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

2. Download the hotfix RPM for Satellite 6.11.0 on RHEL7 attached to this BZ and copy it to Satellite server

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

4. # satellite-maintain service restart

Comment 38 wclark 2022-07-26 02:21:11 UTC
Created attachment 1899330 [details]
Hotfix RPM for Satellite 6.11.0 on RHEL8

INSTALL INSTRUCTIONS:

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

2. Download the hotfix RPM for Satellite 6.11.0 on RHEL8 attached to this BZ and copy it to Satellite server

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

4. # satellite-maintain service restart

Comment 43 errata-xmlrpc 2022-07-27 17:27:09 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 (Satellite 6.11.1 Async Bug Fix Update), 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/RHBA-2022:5742

Comment 44 Pavel Moravec 2022-07-29 10:32:46 UTC
Some heads-up this might not be properly fixed (we are investigating further / will try to reproduce):


Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server x86_64 7Server
	about 1 hour ago 	4 minutes 	Added Rpms: 22, Errata: 1

Email:
SYNC SUMMARY
The synchronization of "Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server x86_64 7Server" has completed. Below is a summary of new errata. A large number of errata were synced for this repository, so only the first 100 are shown. 

New Errata
44 SECURITY	
28 BUGFIX	
74 ENHANCEMENT


Just some repos seem to be still affected, most of them are fine.

Comment 46 Pavel Moravec 2022-08-08 12:41:52 UTC
(In reply to Pavel Moravec from comment #44)
> Some heads-up this might not be properly fixed (we are investigating further
> / will try to reproduce):
> 
> 
> Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server
> x86_64 7Server
> 	about 1 hour ago 	4 minutes 	Added Rpms: 22, Errata: 1
> 
> Email:
> SYNC SUMMARY
> The synchronization of "Red Hat Software Collections RPMs for Red Hat
> Enterprise Linux 7 Server x86_64 7Server" has completed. Below is a summary
> of new errata. A large number of errata were synced for this repository, so
> only the first 100 are shown. 
> 
> New Errata
> 44 SECURITY	
> 28 BUGFIX	
> 74 ENHANCEMENT
> 
> 
> Just some repos seem to be still affected, most of them are fine.

I raised https://bugzilla.redhat.com/show_bug.cgi?id=2116375 for the above bug.

Comment 47 wclark 2022-12-05 12:25:15 UTC
Created attachment 1930052 [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