[Ceilometer/Heat]: Evaluation of autoscaling related alarms is failing

Bug #1223710 reported by Juha Tynninen
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Angus Salkeld

Bug Description

This problem occurs with Havana version of Ceilometer/Heat.

The following patch has been taken into use so that the alarm info can be successfully inserted to ceilometer DB during heat stack create: https://review.openstack.org/#/c/45076/

Autoscaling groups are in use in a template (please see used template in attachment). Stack creation is successful and the VM instance is running ok, cpu_util metrics are inserted and visible in ceilometer DB. However, after stack creation following errors are visible in log files (more details in attachment):

ceilometer-alarm-singleton:
======================
2013-09-11 10:16:28.074 5326 INFO ceilometer.alarm.threshold_evaluation [-] initiating evaluation cycle on 3 alarms
2013-09-11 10:16:28.108 5326 ERROR ceilometer.alarm.threshold_evaluation [-] alarm stats retrieval failed
...
2013-09-11 10:16:28.108 5326 TRACE ceilometer.alarm.threshold_evaluation File "/opt/stack/python-ceilometerclient/ceilometerclient/v2/statistics.py", line 29, in list
2013-09-11 10:16:28.108 5326 TRACE ceilometer.alarm.threshold_evaluation '/v2/meters/' + meter_name + '/statistics',
2013-09-11 10:16:28.108 5326 TRACE ceilometer.alarm.threshold_evaluation TypeError: cannot concatenate 'str' and 'NoneType' objects

ceilometer-api:
===============
2013-09-11 10:16:28.221 4500 ERROR wsme.api [-] Server-side error: "metaquery not implemented". Detail:
Traceback (most recent call last):

  File "/usr/local/lib/python2.7/dist-packages/wsmeext/pecan.py", line 70, in callfunction
    result = f(self, *args, **kwargs)

  File "/opt/stack/ceilometer/ceilometer/api/controllers/v2.py", line 693, in statistics
    for c in computed]

  File "/opt/stack/ceilometer/ceilometer/storage/impl_sqlalchemy.py", line 517, in get_meter_statistics
    query = self._make_stats_query(sample_filter, groupby)

  File "/opt/stack/ceilometer/ceilometer/storage/impl_sqlalchemy.py", line 468, in _make_stats_query
    return make_query_from_filter(query, sample_filter)

  File "/opt/stack/ceilometer/ceilometer/storage/impl_sqlalchemy.py", line 137, in make_query_from_filter
    raise NotImplementedError('metaquery not implemented')

NotImplementedError: metaquery not implemented

Revision history for this message
Juha Tynninen (tyky72) wrote :
Juha Tynninen (tyky72)
affects: heat-templates → heat
Revision history for this message
Eoghan Glynn (eglynn) wrote :

Currently being discussed on the ML:

  http://osdir.com/ml/general/2013-09/msg21123.html

Revision history for this message
Angus Salkeld (asalkeld) wrote :

We need to document the devstack option to use mongodb for ceilometer:

CEILOMETER_BACKEND=mongo

Angus Salkeld (asalkeld)
Changed in heat:
assignee: nobody → Angus Salkeld (asalkeld)
importance: Undecided → High
Revision history for this message
Angus Salkeld (asalkeld) wrote :

This has been merged (docs to explain setup of ceilometer in devstack)

https://review.openstack.org/#/c/49342/

Changed in heat:
status: New → Fix Committed
Angus Salkeld (asalkeld)
Changed in heat:
milestone: none → icehouse-1
Steven Hardy (shardy)
Changed in heat:
milestone: icehouse-1 → havana-rc2
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: havana-rc2 → 2013.2
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.