Bug 1207746

Summary: JON Server can not send e-mail Alert for System Rules.
Product: [Other] RHQ Project Reporter: Prachi <pyadav>
Component: AlertsAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED DUPLICATE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: JON 3.1.1CC: bkramer, hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-09 13:13:49 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 Prachi 2015-03-31 15:38:55 UTC
Description of problem:  JON Server can not send e-mail Alert for System Rules.


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

JON 3.3

How reproducible:


Steps to Reproduce:
1.  Create user "testuser".

2.  Create a System Roles like name "Web Admin" and assign "testuser" to this role.

3. In Alert Definition create Alert, with condition Like "Goes Down" and notification is System Roles:"Web Admin"

Actual results:


When alert is fired, this see in server.log and not sending e-mail.

  **** I am not getting any ERROR in logs but user is not getting any email

  **** However Customer is getting below ERROR and also not getting any email:

###################################
13:12:34,434 ERROR [org.rhq.enterprise.server.alert.AlertManagerBean] 
(Thread-25 (HornetQ-client-global-threads-1882874393)) Notification processing terminated abruptlyfailed to lazily initialize a collection of role: org.rhq.core.domain.authz.Role.subjects, could not initialize proxy - no Session

###################################


Expected results:

The email should be sent to all the users in that role, but it is not working.


Additional info:

If i create System User notification for this alert then it is working, user get the email.

Comment 1 bkramer 2017-06-09 13:13:49 UTC

*** This bug has been marked as a duplicate of bug 1221288 ***