Bug 1041079

Summary: Alert with measuremnt value range condition does not get fired when data is pushed through REST api
Product: [JBoss] JBoss Operations Network Reporter: Libor Zoubek <lzoubek>
Component: Monitoring - Alerts, RESTAssignee: Lukas Krejci <lkrejci>
Status: CLOSED DUPLICATE QA Contact: Sunil Kondkar <skondkar>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: lkrejci, loleary, myarboro, theute
Target Milestone: ---Keywords: NeedsTestCase
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-08-28 12:11:43 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:

Description Libor Zoubek 2013-12-12 13:35:00 UTC
Description of problem:

Alert with measuremnt value range condition does not get fired when data is pushed through REST api. This may apply to other measurement-related condition types.


Version-Release number of selected component (if applicable):
JON 3.2.GA

How reproducible: always


Steps to Reproduce:
1. create syntetic platform via rest
2. choose a trait (ie. Native.MemoryInfo.free)
3. create alert def with measurementValueRagne condition type
4. push measurement data using rest api so condition for your alert is met

Actual results:

alert does not get fired

Expected results:

alert gets fired

Comment 1 Libor Zoubek 2013-12-12 13:42:15 UTC
You can run test to detect/verify this bug:

go through https://github.com/RedHatQE/jon-tests/blob/master/alerts/README.md

git clone https://github.com/RedHatQE/jon-tests.git
cd jon-tests
nosetests -a "single,numeric,range"

Comment 5 Sunil Kondkar 2014-02-18 12:19:24 UTC
Additional Info:
Added a similar test for measurementValueChange condition type (another test for measurement-related condition type. Added this bug to the bug decorator in the test as alert is not fired when metrics are pushed through REST api.)

To run the test:
git clone https://github.com/RedHatQE/jon-tests.git
cd jon-tests/alerts
nosetests -a "single,numeric,change"

Comment 6 Lukas Krejci 2014-08-28 12:11:43 UTC
This has the same underlying cause as BZ 1035890. Closing.

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