Bug 599538

Summary: Resource operation alert does not find a resource
Product: [Other] RHQ Project Reporter: Lukas Krejci <lkrejci>
Component: AlertsAssignee: Joseph Marques <jmarques>
Status: CLOSED CURRENTRELEASE QA Contact: Sudhir D <sdharane>
Severity: high Docs Contact:
Priority: urgent    
Version: 3.0.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-12 16:59:25 UTC Type: ---
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:    
Bug Blocks: 577256    

Description Lukas Krejci 2010-06-03 13:21:24 UTC
Description of problem:

I have a JBossAS server with a custom script in $JBOSS_HOME/bin that gets correctly discovered by RHQ (the script is executable). 

I created an alert on Free Memory value change and set up an "Resource Operation" alert sender to find a relative resource starting the search from JBossAS Server, then filtering by type "Script" and name "test-script.sh" (which is the name of the script file as well as the RHQ resource that represents it). I also tried to put the resource's resource key instead of just the name.

Yet each time the alert fires the notification action fails with message "<no resource selected>".

How reproducible:
always

Actual results:
The script is never run.

Expected results:
The script should run.

Comment 1 Joseph Marques 2010-06-04 17:41:32 UTC
commit 0b1c4a0f06acedf07e695e4b7c30bcbc372b8bcf
Author: Joseph Marques <joseph>
Date:   Fri Jun 4 13:38:30 2010 -0400

BZ-599538: fix error handling for executing alert-trigger operation using RELATIVE search

Comment 2 Charles Crouch 2010-06-04 18:25:05 UTC
Lukas, can you retest this please.

Comment 3 Lukas Krejci 2010-06-07 12:47:22 UTC
seems to work in Beta1

Comment 4 Sudhir D 2010-06-10 14:25:04 UTC
I have verified this and it is working in Beta1. Marking this bug as verified.

Comment 5 Corey Welton 2010-08-12 16:59:25 UTC
Mass-closure of verified bugs against JON.