Ceilometer Invalid input for field/attribute max
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Expired
|
Low
|
Unassigned | ||
ceilometer (Juju Charms Collection) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am using the following charm versions:
cs:trusty/
cs:trusty/
OpenStack origin no both charms is cloud:trusty-
When I tried to access http://
Looking at the apache2 logs on the openstack-dashboard LXC I found multiple instances of the following error:
[Mon May 23 15:29:39.118001 2016] [:error] [pid 62679:tid 140518445020928] Exception in thread Thread-669:
[Mon May 23 15:29:39.118024 2016] [:error] [pid 62679:tid 140518445020928] Traceback (most recent call last):
[Mon May 23 15:29:39.118027 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/
[Mon May 23 15:29:39.118030 2016] [:error] [pid 62679:tid 140518445020928] self.run()
[Mon May 23 15:29:39.118033 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/share/
[Mon May 23 15:29:39.118036 2016] [:error] [pid 62679:tid 140518445020928] stats_attr=
[Mon May 23 15:29:39.118038 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/share/
[Mon May 23 15:29:39.118041 2016] [:error] [pid 62679:tid 140518445020928] query=query, period=period)
[Mon May 23 15:29:39.118044 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/share/
[Mon May 23 15:29:39.118047 2016] [:error] [pid 62679:tid 140518445020928] statistics.
[Mon May 23 15:29:39.118049 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/
[Mon May 23 15:29:39.118052 2016] [:error] [pid 62679:tid 140518445020928] q, p))
[Mon May 23 15:29:39.118054 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/
[Mon May 23 15:29:39.118080 2016] [:error] [pid 62679:tid 140518445020928] resp = self.api.get(url)
[Mon May 23 15:29:39.118083 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/
[Mon May 23 15:29:39.118085 2016] [:error] [pid 62679:tid 140518445020928] return self.client_
[Mon May 23 15:29:39.118088 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/
[Mon May 23 15:29:39.118091 2016] [:error] [pid 62679:tid 140518445020928] self, method, url, **kwargs)
[Mon May 23 15:29:39.118093 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/
[Mon May 23 15:29:39.118096 2016] [:error] [pid 62679:tid 140518445020928] method, self.concat_
[Mon May 23 15:29:39.118098 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/
[Mon May 23 15:29:39.118101 2016] [:error] [pid 62679:tid 140518445020928] raise exceptions.
[Mon May 23 15:29:39.118104 2016] [:error] [pid 62679:tid 140518445020928] BadRequest: Invalid input for field/attribute min. Value: '2857435136'. Wrong type. Expected '<type 'float'>', got '<class 'bson.int64.
Running an API call using the ceilometer cli, I received a similar error
Invalid input for field/attribute max. Value: '214748364800'. Wrong type. Expected '<type 'float'>', got '<class 'bson.int64.
(openstack) usxxspanogm1:
DEBUG (session) REQ: curl -g -i -X GET http://
INFO (connectionpool) Starting new HTTP connection (1): 192.168.168.121
DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 341
DEBUG (session) RESP: [200] Date: Mon, 23 May 2016 15:49:52 GMT Server: Apache/2.4.7 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
DEBUG (v2) Making authentication request to http://
DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 3868
DEBUG (session) REQ: curl -g -i -X GET http://
INFO (connectionpool) Starting new HTTP connection (1): 192.168.168.121
DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 341
DEBUG (session) RESP: [200] Date: Mon, 23 May 2016 15:49:52 GMT Server: Apache/2.4.7 (Ubuntu) Vary: X-Auth-Token X-Distribution: Ubuntu x-openstack-
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
DEBUG (v2) Making authentication request to http://
DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 3868
DEBUG (client) REQ: curl -g -i -X 'GET' 'http://
INFO (connectionpool) Starting new HTTP connection (1): 192.168.168.123
DEBUG (connectionpool) "GET /v2/meters/
DEBUG (client) RESP: [400] {'Date': 'Mon, 23 May 2016 15:49:53 GMT', 'Content-Length': '213', 'Content-Type': 'application/json', 'x-openstack-
DEBUG (client) RESP BODY: {"error_message": {"debuginfo": null, "faultcode": "Client", "faultstring": "Invalid input for field/attribute max. Value: '214748364800'. Wrong type. Expected '<type 'float'>', got '<class 'bson.int64.
DEBUG (client) Request returned failure status: 400
Traceback (most recent call last):
File "/Users/
sys.
File "/Users/
CeilometerS
File "/Users/
args.
File "/Users/
statistics = cc.statistics.
File "/Users/
q, p))
File "/Users/
resp = self.api.get(url)
File "/Users/
return self.client_
File "/Users/
self, method, url, **kwargs)
File "/Users/
method, self.concat_
File "/Users/
raise exceptions.
ceilometerclien
Finally after turning debug on ceilometer charm I found this error in the ceilometer-api.log
2016-05-23 15:07:49.162 153568 DEBUG wsme.api [-] Client-side error: Invalid input for field/attribute max. Value: '214748364800'. Wrong type. Expected '<type 'float'>', got '<class 'bson.int64.
I found 2 OpenStack community bugs on this, and both fixes have been committed.
https:/
https:/
Changed in ceilometer (Juju Charms Collection): | |
status: | New → Invalid |
Looks like bug 1532661; the Liberty UCA has Ceilometer 5.0.5 which should include the fixes to the stable/liberty branch upstream.
Unfortunately I can't tell which version of ceilometer you're using from this bug report - please could you confirm the version of the ceilometer-common package installed on your ceilometer units.
Either way, this is a ceilometer bug not a charm bug - so moving the target directly to the Ubuntu Cloud Archive.
Marking 'Incomplete' and 'Low' for now.