In ceilometer liberty-1 table resource has reduced column resource_id to 255 chars, which a heat stack arn would frequently exceed.
We should either switch to using the stack id instead of arn, or request ceilometer to revert that change (there are valid reasons for wanting a smaller column size, such as index building)
http://logs.openstack.org/27/195627/1/check/check-heat-dsvm-functional-mysql/6f67bea/logs/screen-ceilometer-collector.txt.gz?level=ERROR
2015-06-25 17:39:36.169 6266 ERROR ceilometer.dispatcher.database [-] Failed to record metering data: (_mysql_exceptions.DataError) (1406, "Data too long for column 'resource_id' at row 1") [SQL: u'INSERT INTO resource (user_id, project_id, source_id, resource_id, resource_metadata, metadata_hash) VALUES (%s, %s, %s, %s, %s, %s)'] [parameters: ('f61654f6c2ee426191ff2a0952b6423b', '22990abeee3941d8aec34c09bf78d009', 'openstack', 'arn:openstack:heat::22990abeee3941d8aec34c09bf78d009:stacks/AutoScalingSignalTest-1278811483-JobServerGroup-g3ohap5jraxp-ghgun47tpqcs-6gd2g27t75xy/ead09b07-4fac-45b0-ad9c-489f997925fe', '{"state_reason": "Stack CREATE completed successfully", "user_id": "demo", "event_type": "orchestration.stack.create.end", "stack_identity": "arn:openstack:heat::22990abeee3941d8aec34c09bf78d009:stacks/AutoScalingSignalTest-1278811483-JobServerGroup-g3ohap5jraxp-ghgun47tpqcs-6gd2g27t75xy/ead09b07-4fac-45b0-ad9c-489f997925fe", "stack_name": "AutoScalingSignalTest-1278811483-JobServerGroup-g3ohap5jraxp-ghgun47tpqcs-6gd2g27t75xy", "tenant_id": "22990abeee3941d8aec34c09bf78d009", "state": "CREATE_COMPLETE", "create_at": "2015-06-25T17:39:35.462814", "host": "orchestration.ubuntu"}', '2012a5727086e717f5343dc41e126b06')]
sorry i misspoke on the length, we lowered to 128[1]. this is still twice the longest typical uuid but if there are any issues with this, please raise and we can look to adjust it.
[1] https:/ /github. com/openstack/ ceilometer/ blob/master/ ceilometer/ storage/ sqlalchemy/ migrate_ repo/versions/ 043_reduce_ uuid_data_ types.py