Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1221288

Summary: Impossible to send Notifications to a Group
Product: [JBoss] JBoss Operations Network Reporter: Renaud HOUSSIN <renaud.houssin.prestataire>
Component: Monitoring - AlertsAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED ERRATA QA Contact: Matt Mahoney <mmahoney>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JON 3.3.0CC: bkramer, fbrychta, loleary, miburman, mmahoney, pyadav
Target Milestone: ER01Keywords: Triaged
Target Release: JON 3.3.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-30 16:43:29 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:
Attachments:
Description Flags
JON Download interface none

Description Renaud HOUSSIN 2015-05-13 15:40:54 UTC
Description of problem:

We have some users on our JON Platform. Each Users can do some actions and access to certain ressources. We configured some alerts on several ressources. We configured notification settings with System Roles which contains some users. When an alert comes up we have an error:

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

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


How reproducible:


Steps to Reproduce:
1.Create a Role
2.Insert some users in that role
3.Create an alert with the System Role in Notifications Settings

Actual results:

ERROR [org.rhq.enterprise.server.alert.AlertManagerBean] (Thread-23962 (HornetQ-client-global-threads-784604354)) 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:

Each users in the system Role get an email Alert

Comment 1 Jay Shaughnessy 2015-05-13 21:23:07 UTC
Fixed upstream.

Master commit 0fa1cfe3fa6863e8f4c405667f7b7c71d83fd952
Author: Jay Shaughnessy <jshaughn>
Date:   Wed May 13 17:21:57 2015 -0400

    The email to role users was broken as described. The code was not
    retrieving the lazily loaded subjects for the roles. Fixed.

Comment 3 Renaud HOUSSIN 2015-05-19 08:05:05 UTC
Thanks you for your answer,

So the problem were fixed by which patch? 

I can see Target Release --> JON 3.3.3 but when i go on website i only can see two patches the last were uploaded the 04/30/2015.

I took a screenshot to show the user interface on the website

Comment 4 Renaud HOUSSIN 2015-05-19 08:05:36 UTC
Thanks you for your answer,

So the problem were fixed by which patch? 

I can see Target Release --> JON 3.3.3 but when i go on website i only can see two patches the last were uploaded the 04/30/2015.

I took a screenshot to show the user interface on the website

Comment 5 Renaud HOUSSIN 2015-05-19 08:06:27 UTC
Created attachment 1027005 [details]
JON Download interface

Comment 6 Jay Shaughnessy 2015-05-19 13:32:56 UTC
Hi Renaud,

The 3.3.3 version is the *target* release, it has not yet been released. Although, it is the next scheduled release.  I would suggest contacting JON support if you need more information about JON patch releases.

Comment 7 Filip Brychta 2015-05-28 14:14:04 UTC
*** Bug 1224325 has been marked as a duplicate of this bug. ***

Comment 8 Michael Burman 2015-06-16 08:56:39 UTC
Cherry-picked to release/jon3.3.x:

commit a7b1821785fc83fdcdd0fdf72dacd2e9b0a5d7c3
Author: Jay Shaughnessy <jshaughn>
Date:   Wed May 13 17:21:57 2015 -0400

    [BZ 1221288] Impossible to send Notifications to a Group
    The email to role users was broken as described. The code was not
    retrieving the lazily loaded subjects for the roles. Fixed.
    
    (cherry picked from commit 0fa1cfe3fa6863e8f4c405667f7b7c71d83fd952)

Comment 9 Simeon Pinder 2015-07-10 18:55:45 UTC
Available for test with 3.3.3 ER01 build: 
https://brewweb.devel.redhat.com/buildinfo?buildID=446732
 *Note: jon-server-patch-3.3.0.GA.zip maps to ER01 build of
 jon-server-3.3.0.GA-update-03.zip.

Comment 16 errata-xmlrpc 2015-07-30 16:43:29 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://rhn.redhat.com/errata/RHSA-2015-1525.html

Comment 17 bkramer 2017-06-09 13:13:49 UTC
*** Bug 1207746 has been marked as a duplicate of this bug. ***