[Bug 1584859] Re: Ceilometer Invalid input for field/attribute max

James Page james.page at ubuntu.com
Mon Sep 4 13:55:05 UTC 2017


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.

** Changed in: charm-ceilometer
       Status: New => Incomplete

** Changed in: charm-ceilometer
   Importance: Undecided => Low

** Project changed: charm-ceilometer => cloud-archive

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1584859

Title:
  Ceilometer Invalid input for field/attribute max

Status in Ubuntu Cloud Archive:
  Incomplete
Status in ceilometer package in Juju Charms Collection:
  Invalid

Bug description:
  I am using the following charm versions:
  cs:trusty/ceilometer-236
  cs:trusty/cilometer-agent-232
  OpenStack origin no both charms is cloud:trusty-liberty

  When I tried to access http://horizon_url/horizon/admin/metering/ I got empty response.
  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/python2.7/threading.py", line 810, in __bootstrap_inner
  [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/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/ceilometer.py", line 360, in run
  [Mon May 23 15:29:39.118036 2016] [:error] [pid 62679:tid 140518445020928] stats_attr=self.stats_attr, additional_query=self.additional_query)
  [Mon May 23 15:29:39.118038 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/ceilometer.py", line 579, in update_with_statistics
  [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/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/ceilometer.py", line 308, in statistic_list
  [Mon May 23 15:29:39.118047 2016] [:error] [pid 62679:tid 140518445020928] statistics.list(meter_name=meter_name, q=query, period=period)
  [Mon May 23 15:29:39.118049 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/python2.7/dist-packages/ceilometerclient/v2/statistics.py", line 58, in list
  [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/python2.7/dist-packages/ceilometerclient/common/base.py", line 70, in _list
  [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/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py", line 355, in get
  [Mon May 23 15:29:39.118085 2016] [:error] [pid 62679:tid 140518445020928] return self.client_request("GET", url, **kwargs)
  [Mon May 23 15:29:39.118088 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py", line 345, in client_request
  [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/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py", line 261, in client_request
  [Mon May 23 15:29:39.118096 2016] [:error] [pid 62679:tid 140518445020928] method, self.concat_url(endpoint, url), **kwargs)
  [Mon May 23 15:29:39.118098 2016] [:error] [pid 62679:tid 140518445020928] File "/usr/lib/python2.7/dist-packages/ceilometerclient/openstack/common/apiclient/client.py", line 201, in request
  [Mon May 23 15:29:39.118101 2016] [:error] [pid 62679:tid 140518445020928] raise exceptions.from_response(resp, method, url)
  [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.Int64'>' (HTTP 400) (Request-ID: req-f0a56144-c176-4b30-b611-20ec9cf98b07)

  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.Int64'>' (HTTP 400) (Request-ID: req-46b9d941-ba38-4b5a-8b84-8ce4d1583ceb)
  (openstack) usxxspanogm1:platform spanog$ ceilometer --debug statistics -m image.size
  DEBUG (session) REQ: curl -g -i -X GET http://192.168.168.121:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
  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-request-id: req-88fd5840-2852-4b14-b1ea-c4e05ff864ff Content-Length: 341 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
  RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.168.121:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

  DEBUG (v2) Making authentication request to http://192.168.168.121:5000/v2.0/tokens
  DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 3868
  DEBUG (session) REQ: curl -g -i -X GET http://192.168.168.121:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
  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-request-id: req-53073dad-c5b5-476f-b7ce-1d50b1962c63 Content-Length: 341 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: application/json
  RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.168.121:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

  DEBUG (v2) Making authentication request to http://192.168.168.121:5000/v2.0/tokens
  DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 3868
  DEBUG (client) REQ: curl -g -i -X 'GET' 'http://192.168.168.123:8777/v2/meters/image.size/statistics' -H 'User-Agent: ceilometerclient.openstack.common.apiclient' -H 'X-Auth-Token: {SHA1}f2ef77911d3a88a48fc20c5e7a8f2fa7430286e6'
  INFO (connectionpool) Starting new HTTP connection (1): 192.168.168.123
  DEBUG (connectionpool) "GET /v2/meters/image.size/statistics HTTP/1.1" 400 213
  DEBUG (client) RESP: [400] {'Date': 'Mon, 23 May 2016 15:49:53 GMT', 'Content-Length': '213', 'Content-Type': 'application/json', 'x-openstack-request-id': 'req-80fa9228-b6f7-449a-a843-5055f1ae2e46', 'Server': 'Werkzeug/0.9.4 Python/2.7.6'}

  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.Int64'>'"}}

  DEBUG (client) Request returned failure status: 400
  Traceback (most recent call last):
    File "/Users/spanog/python_environments/openstack/bin/ceilometer", line 11, in <module>
      sys.exit(main())
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/shell.py", line 292, in main
      CeilometerShell().main(args)
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/shell.py", line 241, in main
      args.func(client, args)
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/v2/shell.py", line 105, in do_statistics
      statistics = cc.statistics.list(**api_args)
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/v2/statistics.py", line 58, in list
      q, p))
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/common/base.py", line 63, in _list
      resp = self.api.get(url)
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 355, in get
      return self.client_request("GET", url, **kwargs)
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 345, in client_request
      self, method, url, **kwargs)
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 261, in client_request
      method, self.concat_url(endpoint, url), **kwargs)
    File "/Users/spanog/python_environments/openstack/lib/python2.7/site-packages/ceilometerclient/openstack/common/apiclient/client.py", line 201, in request
      raise exceptions.from_response(resp, method, url)
  ceilometerclient.openstack.common.apiclient.exceptions.BadRequest: Invalid input for field/attribute max. Value: '214748364800'. Wrong type. Expected '<type 'float'>', got '<class 'bson.int64.Int64'>' (HTTP 400) (Request-ID: req-80fa9228-b6f7-449a-a843-5055f1ae2e46)

  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.Int64'>' format_exception /usr/lib/python2.7/dist-packages/wsme/api.py:221

  I found 2 OpenStack community bugs on this, and both fixes have been committed.
  https://bugs.launchpad.net/ceilometer/+bug/1474031
  https://bugs.launchpad.net/ceilometer/+bug/1532661

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1584859/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list