Skip to content

Instantly share code, notes, and snippets.

@rmeleromira
Last active May 10, 2018 21:50
Show Gist options
  • Save rmeleromira/35686d9086bf003b9b3af12903bb6256 to your computer and use it in GitHub Desktop.
Save rmeleromira/35686d9086bf003b9b3af12903bb6256 to your computer and use it in GitHub Desktop.
root@ctl01:~# ceilometer --debug meter-list
DEBUG (client) RESP BODY: {"error_message": {"debuginfo": null, "faultcode": "Server", "faultstring": "TransportError(400, u'parsing_exception')"}}
[2018-05-10T21:38:50,178][DEBUG][o.e.a.b.TransportShardBulkAction] [elasticsearch] [ceilometer_resource][2] failed to execute bulk item (update) BulkShardRequest [[ceilometer_resource][2]] containing [2] requests
java.lang.IllegalArgumentException: failed to execute script
Caused by: java.lang.IllegalArgumentException: Variable [meter] is not defined.
at org.elasticsearch.painless.PainlessScript$Script.compile(ctx._source.meters += meter;ctx._source.user_id = user_id;ctx._source.project_id = project_id;ctx._source.source = source; ctx._source.metadata = ctx._source.last_sample_timestamp <= timestamp ? metadata : ctx._source.metadata;ctx._source.last_sample_time ...:23) ~[?:?]
2018-05-08 22:03:59,383.383 472 INFO ceilometer.api.controllers.v2.utils [-] No limit value provided, result set will be limited to 100.
2018-05-08 22:03:59,385.385 472 WARNING elasticsearch [-] GET /ceilometer_resource/_search?fields=_type%2C_id%2C_source&size=100 [status:400 request:0.001s]
2018-05-08 22:03:59,386.386 472 ERROR wsme.api [-] Server-side error: "TransportError(400, u'parsing_exception')". Detail:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/wsmeext/pecan.py", line 84, in callfunction
result = f(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/ceilometer/api/controllers/v2/meters.py", line 500, in get_all
**kwargs)]
File "/usr/lib/python2.7/dist-packages/ceilometer/storage/impl_stacklight.py", line 206, in get_meters
**q_args)
File "/usr/lib/python2.7/dist-packages/elasticsearch/client/utils.py", line 69, in _wrapped
return func(*args, params=params, **kwargs)
File "/usr/lib/python2.7/dist-packages/elasticsearch/client/__init__.py", line 506, in search
params=params, body=body)
File "/usr/lib/python2.7/dist-packages/elasticsearch/transport.py", line 307, in perform_request
status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
File "/usr/lib/python2.7/dist-packages/elasticsearch/connection/http_urllib3.py", line 89, in perform_request
self._raise_error(response.status, raw_data)
File "/usr/lib/python2.7/dist-packages/elasticsearch/connection/base.py", line 105, in _raise_error
raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
RequestError: TransportError(400, u'parsing_exception')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment