Bug 1357880
| Summary: | Alarm ignores repeat_actions field | |||
|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Yurii Prokulevych <yprokule> | |
| Component: | openstack-aodh | Assignee: | Mehdi ABAAKOUK <mabaakou> | |
| Status: | CLOSED ERRATA | QA Contact: | Yurii Prokulevych <yprokule> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 9.0 (Mitaka) | CC: | apevec, fbaudin, jschluet, lhh, mburns, mlopes, pkilambi | |
| Target Milestone: | ga | Keywords: | Triaged | |
| Target Release: | 9.0 (Mitaka) | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | openstack-aodh-2.0.3-2.el7ost | Doc Type: | Bug Fix | |
| Doc Text: |
Prior to this update, composite alarms continued to send notifications on each refresh. This resulted in unnecessary notifications appearing in the log files.
This update addresses this by no longer sending notifications on each alarm refresh.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1357918 (view as bug list) | Environment: | ||
| Last Closed: | 2016-08-15 07:19:51 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: | 1360399 | |||
| Bug Blocks: | 1357918 | |||
|
Description
Yurii Prokulevych
2016-07-19 13:02:05 UTC
Alarm doesn't log on each evaluation cycle.
aodh --debug alarm create \
--type composite \
--name 'Composite-GnResource-Threshold' \
--description 'Gnocchi-Resource-Threshold and Threshold' \
--severity critical \
--enabled True \
--alarm-action 'log://' \
--ok-action 'log://' \
--insufficient-data-action 'log://' \
--evaluation-periods 3 \
--composite-rule '{ "and": [ { "meter_name": "custom.meter.1", "evaluation_periods": 3, "period": 60, "statistic": "avg", "threshold": 4.0, "query": [{"field": "resource_id", "type": "", "value": "Overcloud-Resource-1", "op": "eq"}], "type": "threshold", "comparison_operator": "ge" }, { "aggregation_method":"mean", "comparison_operator":"ge", "evaluation_periods": 3, "granularity": 60, "metric": "radosgw.objects", "resource_id": "my-ceph-1", "resource_type": "ceph_account", "threshold": 4, "type": "gnocchi_resources_threshold" } ]}'
Packages:
---------
openstack-aodh-notifier-2.0.3-2.el7ost.noarch
python-aodh-2.0.3-2.el7ost.noarch
openstack-aodh-evaluator-2.0.3-2.el7ost.noarch
openstack-aodh-common-2.0.3-2.el7ost.noarch
openstack-aodh-listener-2.0.3-2.el7ost.noarch
openstack-aodh-api-2.0.3-2.el7ost.noarch
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2016-1597.html |