Activity log for bug #1455421

Date Who What changed Old value New value Message
2015-05-15 10:08:13 okamototk bug added bug
2015-05-15 10:08:46 okamototk description Heat could not create samples with Ceilometer. I'm not expert but meter_xxx parameter seems wrong in Heat. Following patch works for me. --- watchrule.py.org 2015-05-15 17:48:38.351871774 +0900 +++ watchrule.py 2015-05-15 18:08:53.509800025 +0900 @@ -270,20 +270,20 @@ def _to_ceilometer(self, data): clients = self.context.clients sample = {} - sample['meter_type'] = 'gauge' + sample['counter_type'] = 'gauge' for k, d in iter(data.items()): if k == 'Namespace': continue - sample['meter_name'] = k - sample['sample_volume'] = d['Value'] - sample['meter_unit'] = d['Unit'] + sample['counter_name'] = k + sample['counter_volume'] = d['Value'] + sample['counter_unit'] = d['Unit'] dims = d.get('Dimensions', {}) if isinstance(dims, list): dims = dims[0] sample['resource_metadata'] = dims sample['resource_id'] = dims.get('InstanceId') - LOG.debug('new sample:%(k)s data:%(sample)s' % { + LOG.info('new sample:%(k)s data:%(sample)s' % { 'k': k, 'sample': sample}) clients.client('ceilometer').samples.create(**sample) Heat could not create samples with Ceilometer. I'm not expert but meter_xxx parameter seems wrong in Heat. Following patch works for me. --- watchrule.py.org 2015-05-15 17:48:38.351871774 +0900 +++ watchrule.py 2015-05-15 18:08:53.509800025 +0900 @@ -270,20 +270,20 @@      def _to_ceilometer(self, data):          clients = self.context.clients          sample = {} - sample['meter_type'] = 'gauge' + sample['counter_type'] = 'gauge'          for k, d in iter(data.items()):              if k == 'Namespace':                  continue - sample['meter_name'] = k - sample['sample_volume'] = d['Value'] - sample['meter_unit'] = d['Unit'] + sample['counter_name'] = k + sample['counter_volume'] = d['Value'] + sample['counter_unit'] = d['Unit']              dims = d.get('Dimensions', {})              if isinstance(dims, list):                  dims = dims[0]
2015-05-15 10:13:25 okamototk affects heat-templates heat
2015-05-15 12:52:01 Rico Lin heat: assignee Rico Lin (rico-lin)
2015-05-17 07:54:05 Rico Lin heat: status New Confirmed
2015-05-17 08:29:55 OpenStack Infra heat: status Confirmed In Progress
2015-05-19 16:40:07 Steve Baker tags juno-backport-potential kilo-backport-potential
2015-05-29 09:50:05 Thomas Herve heat: milestone liberty-1
2015-05-29 09:50:09 Thomas Herve heat: importance Undecided Medium
2015-05-29 10:27:06 OpenStack Infra heat: status In Progress Fix Committed
2015-06-24 12:47:44 Thierry Carrez heat: status Fix Committed Fix Released
2015-07-01 10:03:00 Steven Hardy nominated for series heat/kilo
2015-07-01 10:03:00 Steven Hardy bug task added heat/kilo
2015-07-01 10:13:45 Rico Lin heat/kilo: assignee Rico Lin (rico-lin)
2015-07-03 05:42:16 OpenStack Infra heat/kilo: status New In Progress
2015-07-16 21:14:27 Alan Pevec heat/kilo: importance Undecided Medium
2015-07-16 23:04:13 OpenStack Infra heat/kilo: status In Progress Fix Committed
2015-07-23 21:54:17 Alan Pevec heat/kilo: milestone 2015.1.1
2015-07-29 21:43:27 Alan Pevec heat/kilo: status Fix Committed Fix Released
2015-08-25 21:10:11 Steve Baker tags juno-backport-potential kilo-backport-potential in-stable-kilo juno-backport-potential
2015-10-15 10:20:30 Thierry Carrez heat: milestone liberty-1 5.0.0