Bug 1315324 - 'project_id' and 'user_id' fields are not set with alarm-gnocchi-resources-threshold-create
Summary: 'project_id' and 'user_id' fields are not set with alarm-gnocchi-resources-th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-ceilometerclient
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ga
: 9.0 (Mitaka)
Assignee: Pradeep Kilambi
QA Contact: Yurii Prokulevych
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-07 13:25 UTC by Yurii Prokulevych
Modified: 2016-08-15 06:16 UTC (History)
7 users (show)

Fixed In Version: python-ceilometerclient-2.3.0-1.el7ost
Doc Type: Bug Fix
Doc Text:
Alarms created with the type 'gnocchi-resource-threshold' has empty fields for the 'project_id' and 'user_id' fields. With this update, when alarms are created with type 'gnocchi-resource-threshold', the 'project_id' and 'user_id' fields are populated.
Clone Of:
Environment:
Last Closed: 2016-08-11 12:14:44 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1506509 0 None None None 2016-03-07 13:25:04 UTC
Red Hat Product Errata RHEA-2016:1597 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 9 Release Candidate Advisory 2016-08-11 16:06:52 UTC

Description Yurii Prokulevych 2016-03-07 13:25:05 UTC
Description of problem (Clone of upstream bug):

Alarm of 'gnocchi-resource-threshold' type is create with empty fields : 'project_id' and 'user_id'

ceilometer alarm-show d4d2d337-f0b3-48ce-905e-dbe4bf9c6a91
+---------------------------+--------------------------------------+
| Property | Value |
+---------------------------+--------------------------------------+
| aggregation_method | mean |
| alarm_actions | [u'log://'] |
| alarm_id | d4d2d337-f0b3-48ce-905e-dbe4bf9c6a91 |
| comparison_operator | ge |
| description | My Test Alarm with Gnocchi backend |
| enabled | True |
| evaluation_periods | 1 |
| granularity | 60 |
| insufficient_data_actions | [u'log://'] |
| metric | MyCacti1Day |
| name | Cacti1Day-Alarm |
| ok_actions | [u'log://'] |
| project_id | |
| repeat_actions | False |
| resource_id | 2f98e37d-dc5e-5dec-aec2-47e272cb93e7 |
| resource_type | generic |
| severity | low |
| state | insufficient data |
| threshold | 3.0 |
| type | gnocchi_resources_threshold |
| user_id | |
+---------------------------+--------------------------------------+

Version-Release number of selected component (if applicable):

python-ceilometerclient-1.5.2-1.el7ost.noarch

Comment 1 Julien Danjou 2016-06-03 13:26:31 UTC
Unlikely to be triggered on OSP 8, targetting at OSP 9.

Comment 3 Yurii Prokulevych 2016-07-07 12:42:17 UTC
Verified with python-ceilometerclient-2.3.0-1.el7ost.noarch

ceilometer alarm-gnocchi-resources-threshold-create --name 'GnocchiResourceThresholdAlarm' --description 'Alarm 1 with Gnocchi backend'  --severity 'moderate
'    --enabled True    --alarm-action 'log://'    --ok-action 'log://'    --insufficient-data-action 'log://'    --granularity 60    --evaluation-periods 2     --aggregation-method 'mean'     --comparison-operat
or 'ge'     --threshold 3.0    --metric radosgw.containers.objects.size    --resource-type ceph_account    --resource-id ceph-alarm-1
+---------------------------+--------------------------------------+
| Property                  | Value                                |
+---------------------------+--------------------------------------+
| aggregation_method        | mean                                 |
| alarm_actions             | ["log://"]                           |
| alarm_id                  | 2d1a7999-a3a5-498c-b997-b34cc5647ecc |
| comparison_operator       | ge                                   |
| description               | Alarm 1 with Gnocchi backend         |
| enabled                   | True                                 |
| evaluation_periods        | 2                                    |
| granularity               | 60                                   |
| insufficient_data_actions | ["log://"]                           |
| metric                    | radosgw.containers.objects.size      |
| name                      | GnocchiResourceThresholdAlarm        |
| ok_actions                | ["log://"]                           |
| project_id                | d3ed8a8f708a4af8bf66c7c4e7915e68     |
| repeat_actions            | False                                |
| resource_id               | ceph-alarm-1                         |
| resource_type             | ceph_account                         |
| severity                  | moderate                             |
| state                     | insufficient data                    |
| threshold                 | 3.0                                  |
| type                      | gnocchi_resources_threshold          |
| user_id                   | 99c0debaf9354b3abc8817e3ef3fefdf     |
+---------------------------+--------------------------------------+

Comment 5 errata-xmlrpc 2016-08-11 12:14:44 UTC
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


Note You need to log in before you can comment on or make changes to this bug.