Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1903989

Summary: reports:daily trigger mail notification twice
Product: Red Hat Satellite Reporter: Ranjan Kumar <rankumar>
Component: EmailAssignee: Dominik Matoulek <dmatoule>
Status: CLOSED ERRATA QA Contact: Stephen Wadeley <swadeley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.8.0CC: afeferku, apatel, dmatoule, egolov, gscarbor, janarula, mhulan, pcreech, zhunting
Target Milestone: 6.9.0Keywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: foreman-2.3.1.1-1,tfm-rubygem-katello-3.18.1.5-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1933166 (view as bug list) Environment:
Last Closed: 2021-04-21 13:24:23 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:

Description Ranjan Kumar 2020-12-03 10:26:30 UTC
Description of problem:
Subscribe only one mail notification and running rake task sends same mail notification twice
# foreman-rake  reports:daily

[root@dgupte-rhsat ~]# tail -f -n 200 /var/log/foreman/production.log  | grep -i deliv
2020-12-03T13:12:46 [I|app|] Delivered mail 5fc896f632df0_50e9fbe618806be.pnq2.redhat.com.mail (32.0ms)
2020-12-03T13:12:46 [I|app|] Delivered mail 5fc896f6474c6_50e9fbe618807bb.pnq2.redhat.com.mail (20.7ms)


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


How reproducible: Always


Actual results: It sends an email notification twice


Expected results: It should send an email once

Comment 1 Bryan Kearney 2020-12-03 12:06:08 UTC
Upstream bug assigned to dmatoule

Comment 2 Bryan Kearney 2020-12-03 12:06:11 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/30670 has been resolved.

Comment 5 Marek Hulan 2021-01-11 16:47:38 UTC
It seems the upstream issue wasn't linked properly, we need https://github.com/Katello/katello/pull/9057 to really fix the issue. Linking the right one now - https://projects.theforeman.org/issues/31418 and switching back to ON_DEV

Comment 9 Lukas Zapletal 2021-01-25 07:03:42 UTC
*** Bug 1919101 has been marked as a duplicate of this bug. ***

Comment 14 errata-xmlrpc 2021-04-21 13:24:23 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 (Moderate: Satellite 6.9 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-2021:1313