[sqlalchemy] ttl function cause sample metadata query don't work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
In Progress
|
Undecided
|
Lan Qi song |
Bug Description
My local environment:
DB backend : mysql
TTL : 1800
# nova show e27446c0-
+------
| Property | Value |
+------
......
| metadata | {"metering.stack": "46a07745-
+------
# ceilometer sample-list -m cpu_util -q 'resource_
+------
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+------
| e27446c0-
| e27446c0-
| e27446c0-
| e27446c0-
+------
# ceilometer sample-list -m cpu_util -q metadata.
+------
| Resource ID | Name | Type | Volume | Unit | Timestamp |
+------
+------
And I noticed that all the metadata table are empty. If I understand correctly, the "id" of metadata table is related to "internal_id" of resource table, but currently, the ceilometer-expired code related the "id" of metadata table to the "id" of Sample table:
https:/
Changed in ceilometer: | |
assignee: | nobody → Lan Qi song (lqslan) |
there aleady has a bug report and patch
https:/ /bugs.launchpad .net/ceilometer /+bug/1419239 /review. openstack. org/#/c/ 153902/
https:/