Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1315324

Summary: 'project_id' and 'user_id' fields are not set with alarm-gnocchi-resources-threshold-create
Product: Red Hat OpenStack Reporter: Yurii Prokulevych <yprokule>
Component: python-ceilometerclientAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED ERRATA QA Contact: Yurii Prokulevych <yprokule>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: dnavale, jjoyce, jruzicka, mburns, pkilambi, rhel-osp-director-maint, srevivo
Target Milestone: gaKeywords: Triaged
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-11 12:14:44 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:

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