statistic broken when getting no sample of the specified meter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Low
|
Liusheng |
Bug Description
My environment deployed with mysql db, hen I use the command like this:
ceilometer statistics -m instance -p 5000 -g resource_id -q "user=a992a76cd
here, the 'user' with 'a992a76cd84041
the ceilometer CLI will return an 500 error.
the traces in ceilometer-api.log is:
2014-03-14 10:25:30.193 8821 DEBUG ceilometer.
2014-03-14 10:38:20.282 8821 ERROR wsme.api [-] Server-side error: "unsupported operand type(s) for -: 'NoneType' and 'NoneType'". Detail:
Traceback (most recent call last):
File "/usr/local/
result = f(self, *args, **kwargs)
File "/opt/stack/
for c in computed]
File "/opt/stack/
period):
File "/opt/stack/
timeutils.
File "/opt/stack/
delta = after - before
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
Changed in ceilometer: | |
assignee: | nobody → Liusheng (liusheng) |
description: | updated |
Changed in ceilometer: | |
status: | New → In Progress |
Changed in ceilometer: | |
importance: | Undecided → Low |
Changed in ceilometer: | |
milestone: | none → juno-1 |
Changed in ceilometer: | |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | juno-1 → 2014.2 |
https:/ /review. openstack. org/#/c/ 80467/