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 1417069

Summary: Email notification fails for Satellite Promotion and Satellite Sync Summary
Product: Red Hat Satellite Reporter: Satellite Program <pm-sat>
Component: EmailAssignee: Justin Sherrill <jsherril>
Status: CLOSED ERRATA QA Contact: Jan Hutaƙ <jhutar>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2.0CC: anerurka, bbuckingham, bkearney, brubisch, ehelms, gpayelka, jcallaha, jsherril, lphiri, mburgerh, mklein, omaciel, peter.vreman, pmoravec, rdixon, stbenjam, szadok, xdmoon
Target Milestone: UnspecifiedKeywords: PrioBumpGSS, Regression, Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman-tasks-0.9.6.4-1.fm1_14 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1369817 Environment:
Last Closed: 2018-02-21 16:54:37 UTC Type: ---
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: 1369817    
Bug Blocks: 1122832, 1385841    

Comment 3 Brad Buckingham 2017-09-06 15:11:52 UTC
Failed verification with Satellite 6.3 SNAP 14: satellite-6.3.0-17.0.beta.el7sat.noarch, tfm-rubygem-katello-3.4.5-1.el7sat.noarch

- created a user, assigned email notifications for "Host errata advisory", "Promote errata" and "Sync errata"
- assigned the user to a host that was registered to Library/rhel7 (cv)
- published a new version of rhel7 (cv)

- the task did attempt to send email; however, it failed with the following error:

result: |-
  Unable to send errata e-mail notification: undefined method `deliver_now' for #<MailNotification:0x007f2ab15077f0>
  Did you mean?  deliver

- NOTE: this error is consistent with the 6.2.z clone bug 1369817#c17; therefore, we will probably require downstream MR to address the difference

Comment 4 Satellite Program 2017-09-06 16:20:00 UTC
Upstream bug assigned to jsherril

Comment 8 Og Maciel 2017-11-28 19:19:57 UTC
Please be aware of the following errors when promoting (Satellite 6.3.0 SNAP 26):

2017-11-28 14:15:33  [app] [E] Unable to send errata e-mail notification: Could not find stylesheet "$FOREMAN_PREFIX/assets/unimported/email-2661723e7b5ca9b48a28e246bad0829a1feca554cc13d7404457d17c115e70f8.css": All providers failed
 | Used providers:
 |      #<Roadie::FilesystemProvider /usr/share/satellite/public>: /usr/share/satellite/public/$FOREMAN_PREFIX/assets/unimported/email-2661723e7b5ca9b48a28e246bad0829a1feca554cc13d7404457d17c115e70f8.css does not exist. (Original name was "$FOREMAN_PREFIX/assets/unimported/email-2661723e7b5ca9b48a28e246bad0829a1feca554cc13d7404457d17c115e70f8.css")
 |      #<Roadie::Rails::AssetPipelineProvider:0x00000007cbfc08>: Could not find stylesheet "$FOREMAN_PREFIX/assets/unimported/email-2661723e7b5ca9b48a28e246bad0829a1feca554cc13d7404457d17c115e70f8.css"
 | Used provider:
 | #<Roadie::Rails::AssetPipelineProvider:0x00000007cbfc08>
 |

Comment 9 Og Maciel 2017-11-28 19:24:14 UTC
Failing this issue as no emails are being sent for sync of repositories or promotion of content views. For all other actions emails are being sent.

This was tested on satellite-6.3.0-21.0.beta.el7sat.noarch

Comment 10 Justin Sherrill 2018-01-08 18:26:39 UTC
Found an issue in foreman-tasks that caused this: http://projects.theforeman.org/issues/22177

Comment 13 Satellite Program 2018-02-21 16:54:37 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, 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-2018:0336