commit 989fac5c5821739fef4809b0d75840e3bc4685bf
Author: ZhiQiang Fan <email address hidden>
Date: Sat Feb 7 16:23:20 2015 +0800
metering data ttl sql backend breaks resource metadata
The implementation for sql clear_expired_metering_data() uses delete()
on join() for four metatada tables, which will cause clear whole
tables no matter what join returns. And it associates metadata id
with sample id which makes no sense, the metadata id is resource's
internal id.
Change-Id: I98219bf27a0a765838d45386b7ae6b6b980b1ae9
Closes-Bug: #1419239
(cherry picked from commit 5a65b4de0fe46967e76832c2acf4924a53b18612)
Reviewed: https:/ /review. openstack. org/154530 /git.openstack. org/cgit/ openstack/ ceilometer/ commit/ ?id=989fac5c582 1739fef4809b0d7 5840e3bc4685bf
Committed: https:/
Submitter: Jenkins
Branch: stable/juno
commit 989fac5c5821739 fef4809b0d75840 e3bc4685bf
Author: ZhiQiang Fan <email address hidden>
Date: Sat Feb 7 16:23:20 2015 +0800
metering data ttl sql backend breaks resource metadata
The implementation for sql clear_expired_ metering_ data() uses delete()
on join() for four metatada tables, which will cause clear whole
tables no matter what join returns. And it associates metadata id
with sample id which makes no sense, the metadata id is resource's
internal id.
Change-Id: I98219bf27a0a76 5838d45386b7ae6 b6b980b1ae9 7e76832c2acf492 4a53b18612)
Closes-Bug: #1419239
(cherry picked from commit 5a65b4de0fe4696