Bug 1028526
Summary: | Availability duration alerts ignore availability changes during the specified interval | ||||||
---|---|---|---|---|---|---|---|
Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> | ||||
Component: | Monitoring - Alerts | Assignee: | Jay Shaughnessy <jshaughn> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | urgent | ||||||
Version: | JON 3.1.2 | CC: | ahovsepy, jshaughn | ||||
Target Milestone: | ER07 | ||||||
Target Release: | JON 3.2.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | 1028473 | ||||||
: | 1028528 (view as bug list) | Environment: | |||||
Last Closed: | 2014-01-02 20:35:54 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: | |||||||
Bug Depends On: | 1019941, 1028473 | ||||||
Bug Blocks: | 1012435, 1028528 | ||||||
Attachments: |
|
Description
Larry O'Leary
2013-11-08 16:48:41 UTC
Steps to reproduce: 1. Install and start JBoss EAP 6 standalone server. 2. Install and start JBoss ON 3.1.2 system. 3. Import EAP standalone server into inventory and configure its connection settings. 4. Create new _stays down for 5 minutes_ alert definition for EAP resource: *Name*: `Alert - Profile Down` *Condition*: *Fire alert when*: _ANY_ *Condition Type*: _Availability Duration_ *Availability Duration*: _Stays Down_ *Duration*: `5` _minutes_ 5. Set EAP resource's availability metric schedule to 30 seconds. 6. Verify EAP resource is reported us UP. 7. Shutdown EAP resource and wait for availability to report DOWN. 8. Wait for approximately another minute. 9. Start EAP resource and wait for availability to report UP. 10. Wait for approximately another 2 minutes. 11. Shutdown EAP resource. 12. Wait for `Alert - Profile Down` alert to fire. 13. Start EAP resource and wait for availability to report UP. Actual results: Availability Nov 8, 2013 11:37:43 AM - none ..... UP Nov 8, 2013 11:34:42 AM - Nov 8, 2013 11:37:43 AM 3.0 m DOWN Nov 8, 2013 11:33:38 AM - Nov 8, 2013 11:34:42 AM 1.1 m UP Nov 8, 2013 11:32:07 AM - Nov 8, 2013 11:33:38 AM 1.5 m DOWN Nov 8, 2013 11:29:32 AM - Nov 8, 2013 11:32:07 AM 2.6 m UP Alert: Fri Nov 08 11:37:08 GMT-600 2013 Alert - Profile Down Availability Duration [Stays Down For 5 m] The alert gets fired even though the EAP resource was only DOWN for 3.0 minutes. Expected Results: The alert should not be fired unless the DOWN duration is greater then or equal to 5 minutes. Test Case: The reproduction steps above are valid. You can use any resource that you can easily bring up and down and an avail duration long enough to be able to cycle the resource 1 time in between. I used a Tomcat webapp and a duration of 1 minute. The important thing is that the "Stays DOWN" semantic is now strict. Therefore any availability change on the resource during the avail duration period should negate the potential alert. release/jon3.2.x commit 5ef367384b1a8d67b2c69e38b92329fa62e6aeed Author: Jay Shaughnessy <jshaughn> Date: Fri Nov 8 10:42:16 2013 -0500 Fixed such that avail duration conditions will not be satisfied unless the avail stays constant throughout the specified time interval. Also: Fix a jdoc mistake around param units in AvailabilityCriteria Moving to ON_QA as available for testing with new brew build. Mass moving all of these from ER6 to target milestone ER07 since the ER6 build was bad and QE was halted for the same reason. verified in er7 -> http://d.pr/i/kcV3 log attached with steps and times Created attachment 829811 [details]
eap-server.log
|