Incorrect SQL statement in inserting to table EVENT
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
High
|
Angus Salkeld |
Bug Description
This problem occurs with Havana version of Ceilometer/Heat. I ran this with devstack pulled today.
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:/
Heat fills an incorrect parameter to be inserted to database as a result of Ceilometer calling Heat's webhook when an alarm has been triggered. See the attached template file. Adjust properties KeyName and ImageId in the template before running it.
Value of parameter resource_
Heat engine's log:
=======
2013-09-12 14:20:21.344 ERROR heat.engine.
(ProgrammingError) (1064, 'You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right syntax to
use near \': "\'insufficient data\'", u\'alarm_id\':
"\'212341eb-
(created_at, updated_at, stack_id, resource_action, resource_status,
resource_name, physical_
resource_
(datetime.
'408c1ad7-
'VmRestartPolicy', 'e106677a51714e
u'insufficient data', u'alarm_id': u'212341eb-
u'reason': [u'1', u' ', u'd', u'a', u't', u'a', u'p', u'o', u'i', u'n', u't',
u's', u' ', u'a', u'r', u'e', u' ', u'u', u'n', u'k', u'n', u'o', u'w', u'n'],
u'previous': u'alarm'}, 'OS::Heat:
'\x80\x02}
2013-09-12 14:20:21.344 INFO heat.engine.
2013-09-12 14:20:21.344 INFO heat.engine.
2013-09-12 14:20:21.345 DEBUG heat.engine.
2013-09-12 14:20:21.345 DEBUG heat.engine.
2013-09-12 14:20:21.345 INFO heat.engine.
2013-09-12 14:20:21.462 INFO requests.
2013-09-12 14:20:21.806 DEBUG requests.
2013-09-12 14:20:21.808 INFO requests.
=======
Steps to reproduce the problem:
The steps to reproduce the problem:
1) add the following to /etc/ceilometer
- name: "accumulator"
2) restart ceilometer-acompute
3) Create the stack: heat stack-create ha -f <templateFileName>
4) when the stack is up, locate the alarm id of metric "vm_down" with
ceilometer alarm-list
5) Change the alarm status:
ceilometer alarm-update -a <alarmID> --state alarm
6) The log entry above appears in heat engine's log within a minute
PS. Note that there's another problem in Ceilometer due to which you are forced to supply insufficient_
Changed in heat: | |
milestone: | none → havana-rc2 |
assignee: | nobody → Angus Salkeld (asalkeld) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in heat: | |
milestone: | havana-rc2 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/50511
Review: https:/