Bug 1127264
| Summary: | Creating alert notification of type Resource Operations ignores extraConfig field | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Libor Zoubek <lzoubek> |
| Component: | REST | Assignee: | Libor Zoubek <lzoubek> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Armine Hovsepyan <ahovsepy> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | JON 3.2 | CC: | 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
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
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> Moving to ON_QA as available to test in the following brew build: https://brewweb.devel.redhat.com//buildinfo?buildID=379025 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"}}'
|