Public bug reported:
I am receiving the following trace from gnocchi
2019-12-20 16:35:06,334 [31] ERROR gnocchi.chef: Error processing new
measures
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gnocchi/chef.py", line 165, in
process_new_measures_for_sack
for metric in metrics
File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line
714, in add_measures_to_metrics
before_truncate_callback=_map_compute_splits_operations,
File "/usr/lib/python2.7/site-packages/gnocchi/carbonara.py", line 364, in
set_values
return_value = before_truncate_callback(self)
File "/usr/lib/python2.7/site-packages/gnocchi/storage/__init__.py", line
673, in _map_compute_splits_operations
tstamp = max(bound_timeserie.first, measures['timestamps'][0])
IndexError: index 0 is out of bounds for axis 0 with size 0
Unfortunately there is not enough information here to determine what
measurement is causing the issue.
Could gnocchi/chef.py be modified to try/catch the single failed
self.storage.add_measures_to_metrics individually instead of dropping
the remainder of the measurements?
try:
with self.incoming.process_measures_for_sack(sack) as measures:
# process only active metrics. deleted metrics with unprocessed
# measures will be skipped until cleaned by janitor.
if not measures:
return 0
metrics = self.index.list_metrics(
attribute_filter={
"in": {"id": measures.keys()}
})
-------- try:
self.storage.add_measures_to_metrics({
metric: measures[metric.id]
for metric in metrics
})
-------- except:
Report failed metric and any details?
LOG.debug("Measures for %d metrics processed",
len(metrics))
return len(measures)
except Exception:
if sync:
raise
LOG.error("Error processing new measures", exc_info=True)
return 0
finally:
lock.release()
** Affects: gnocchi (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1857175
Title:
IndexError: index is out of bounds for axis with size
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1857175/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs