Bug 1127264

Summary: Creating alert notification of type Resource Operations ignores extraConfig field
Product: [JBoss] JBoss Operations Network Reporter: Libor Zoubek <lzoubek>
Component: RESTAssignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Armine Hovsepyan <ahovsepy>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: jkremser, mfoley, mkoci, theute
Target Milestone: ER01   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 14:01:16 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 Libor Zoubek 2014-08-06 13:39:51 UTC
Description of problem:

right now it is not possible to create alert notification with sender name "Resource Operations" and set input parameters for selected operation.

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

How reproducible: always


Steps to Reproduce:
1. via REST: create alert notification of type "Resource Operations", pass extraConfig to provide input parameters for operation.
2. open your alert notification in UI

Actual results:
notification is created, but without input parameters


Expected results: 
notification is created including input parameters

Additional info:

Comment 1 Libor Zoubek 2014-08-06 14:38:07 UTC
in master

commit 9916185a5097df1b25f6b246f913ec8301574674
Author: Libor Zoubek <lzoubek>
Date:   Wed Aug 6 16:36:29 2014 +0200

    Bug 1127264 - Creating alert notification of type Resource Operations
    ignores extraConfig field

Comment 2 Jirka Kremser 2014-08-06 16:26:39 UTC
branch:  release/jon3.3.x
link:    https://github.com/rhq-project/rhq/commit/0a3d6dc5d
time:    2014-08-06 18:25:24 +0200
commit:  0a3d6dc5d2f09595002c43d070da5126dfa40cfc
author:  Libor Zoubek - lzoubek
message: Bug 1127264 - Creating alert notification of type Resource Operations 
         ignores extraConfig field

         (cherry picked from commit
         9916185a5097df1b25f6b246f913ec8301574674) Signed-off-by: Jirka
         Kremser <jkremser>

Comment 3 Simeon Pinder 2014-08-19 23:50:22 UTC
Moving to ON_QA as available to test in the following brew build:

https://brewweb.devel.redhat.com//buildinfo?buildID=379025

Comment 4 Jan Bednarik 2014-08-27 13:47:19 UTC
Moving to VERIFIED.

I tested adding notification definition to alert defined for servers' EAP resource . The notification should trigger script execution. When inspected via web UI, all parameters were set as required using REST. Command used:

curl -u rhqadmin:rhqadmin -X POST -H 'Content-Type:application/json' http://<server_ip>:7080/rest/alert/definition/<alert_def_id>/notifications -d '{"senderName":"Resource Operations","config":{"operation-definition-id":10459},"extraConfig":{"file":"testscript.sh","triggerAvailability":"false","triggerDiscovery":"false","waitTime":12345,"killOnTimeout":"true"}}'