Bug 1223050

Summary: When multiple users are subscribed, satellite sends notification to one user only
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Content ManagementAssignee: Stephen Benjamin <stbenjam>
Status: CLOSED CURRENTRELEASE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, bkearney
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/10572
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 16:03:04 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: 1232372    
Bug Blocks:    

Description sthirugn@redhat.com 2015-05-19 16:58:38 UTC
Description of problem:
When multiple users are subscribed, satellite sends notification to one user only

Version-Release number of selected component (if applicable):
Sat 6.1 GA Snap 4

How reproducible:
Always

Steps to Reproduce:
1. Create multiple users (admin or non-admin) and subscribe to satellite notifications for 
- Satellite Promote errata
- Satellite Sync errata
- Puppet error state
2. Create triggers to generate any or all of the emails above

Actual results:
I created three users, but notification was only sent to one user

Expected results:
Email notification should be sent to all subscribers.

Additional info:

Comment 1 sthirugn@redhat.com 2015-05-19 16:59:30 UTC
FWIW this works fine for cron job triggers like Puppet Summary email and Satellite host advisory emails.

Comment 3 Stephen Benjamin 2015-05-21 09:56:25 UTC
Created redmine issue http://projects.theforeman.org/issues/10572 from this bug

Comment 4 Bryan Kearney 2015-05-21 10:06:40 UTC
Upstream bug assigned to stbenjam

Comment 5 Bryan Kearney 2015-06-02 22:05:38 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/10572 has been closed
-------------
Anonymous
Applied in changeset commit:katello|ce174b43f57e92d9e5b3b18494e7f27d56bffd12.

Comment 6 Stephen Benjamin 2015-06-03 00:05:19 UTC
This also requires a change to Foreman:
https://github.com/theforeman/foreman/pull/2314


foreman|79ebdcdd45449375d8795080c35c3fb4fbddd2d6

Comment 11 sthirugn@redhat.com 2015-06-16 15:05:47 UTC
This is blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1232372

Comment 12 sthirugn@redhat.com 2015-07-08 16:53:21 UTC
Verified in Sat 6.1 GA Snap 11.  Email sent to multiple satellite users.

I tried with both admin and non-admin users.  Please note the following when configuring email notification for non-admin users.

- Non-admin users should be explicitly configured for email notification by assigning them to role:
Resource Type: Mail notification
Permission: view_email_notifications
- Also make sure non-admin users have access to Products/Repositories -
Resource type: Product and Repositories
Permission: <Depending on the use case>

Comment 13 Bryan Kearney 2015-08-12 16:03:04 UTC
This bug was fixed in Satellite 6.1.1 which was delivered on 12 August, 2015.