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